(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=window.getComputedStyle(e,null);return t?o[t]:o}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e||-1!==['HTML','BODY','#document'].indexOf(e.nodeName))return window.document.body;var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll)/.test(r+s+p)?e:n(o(e))}function r(e){var o=e&&e.offsetParent,i=o&&o.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TD','TABLE'].indexOf(o.nodeName)&&'static'===t(o,'position')?r(o):o:window.document.documentElement}function p(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||r(e.firstElementChild)===e)}function s(e){return null===e.parentNode?e:s(e.parentNode)}function d(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return window.document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=o?e:t,n=o?t:e,a=document.createRange();a.setStart(i,0),a.setEnd(n,0);var l=a.commonAncestorContainer;if(e!==l&&t!==l||i.contains(n))return p(l)?l:r(l);var f=s(e);return f.host?d(f.host,t):d(e,s(t).host)}function a(e){var t=1=o.clientWidth&&i>=o.clientHeight}),l=0i[e]&&!t.escapeWithReference&&(n=V(p[o],i[e]-('right'===e?p.width:p.height))),se({},o,n)}};return n.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';p=de({},p,s[t](e))}),e.offsets.popper=p,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,i=t.reference,n=e.placement.split('-')[0],r=_,p=-1!==['top','bottom'].indexOf(n),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]r(i[s])&&(e.offsets.popper[d]=r(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){if(!F(e.instance.modifiers,'arrow','keepTogether'))return e;var i=o.element;if('string'==typeof i){if(i=e.instance.popper.querySelector(i),!i)return e;}else if(!e.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var n=e.placement.split('-')[0],r=e.offsets,p=r.popper,s=r.reference,d=-1!==['left','right'].indexOf(n),a=d?'height':'width',l=d?'Top':'Left',f=l.toLowerCase(),m=d?'left':'top',c=d?'bottom':'right',g=O(i)[a];s[c]-gp[c]&&(e.offsets.popper[f]+=s[f]+g-p[c]);var u=s[f]+s[a]/2-g/2,b=t(e.instance.popper,'margin'+l).replace('px',''),y=u-h(e.offsets.popper)[f]-b;return y=X(V(p[a]-g,y),0),e.arrowElement=i,e.offsets.arrow={},e.offsets.arrow[f]=Math.round(y),e.offsets.arrow[m]='',e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=w(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split('-')[0],n=L(i),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case fe.FLIP:p=[i,n];break;case fe.CLOCKWISE:p=K(i);break;case fe.COUNTERCLOCKWISE:p=K(i,!0);break;default:p=t.behavior;}return p.forEach(function(s,d){if(i!==s||p.length===d+1)return e;i=e.placement.split('-')[0],n=L(i);var a=e.offsets.popper,l=e.offsets.reference,f=_,m='left'===i&&f(a.right)>f(l.left)||'right'===i&&f(a.left)f(l.top)||'bottom'===i&&f(a.top)f(o.right),g=f(a.top)f(o.bottom),b='left'===i&&c||'right'===i&&h||'top'===i&&g||'bottom'===i&&u,y=-1!==['top','bottom'].indexOf(i),w=!!t.flipVariations&&(y&&'start'===r&&c||y&&'end'===r&&h||!y&&'start'===r&&g||!y&&'end'===r&&u);(m||b||w)&&(e.flipped=!0,(m||b)&&(i=p[d+1]),w&&(r=j(r)),e.placement=i+(r?'-'+r:''),e.offsets.popper=de({},e.offsets.popper,S(e.instance.popper,e.offsets.reference,e.placement)),e=N(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],i=e.offsets,n=i.popper,r=i.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return n[p?'left':'top']=r[o]-(s?n[p?'width':'height']:0),e.placement=L(t),e.offsets.popper=h(n),e}},hide:{order:800,enabled:!0,fn:function(e){if(!F(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=T(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottomo.right||t.top>o.bottom||t.right 0 ? selector:null; } catch (error){ return null; }}, reflow: function reflow(element){ return element.offsetHeight; }, triggerTransitionEnd: function triggerTransitionEnd(element){ $(element).trigger(transition.end); }, supportsTransitionEnd: function supportsTransitionEnd(){ return Boolean(transition); }, isElement: function isElement(obj){ return (obj[0]||obj).nodeType; }, typeCheckConfig: function typeCheckConfig(componentName, config, configTypes){ for (var property in configTypes){ if(Object.prototype.hasOwnProperty.call(configTypes, property)){ var expectedTypes=configTypes[property]; var value=config[property]; var valueType=value&&Util.isElement(value) ? 'element':toType(value); if(!new RegExp(expectedTypes).test(valueType)){ throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\".")); }} }} }; setTransitionEndSupport(); return Util; }($); function _defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if("value" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} function _createClass(Constructor, protoProps, staticProps){ if(protoProps) _defineProperties(Constructor.prototype, protoProps); if(staticProps) _defineProperties(Constructor, staticProps); return Constructor; } var createClass=_createClass; function _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; } var inheritsLoose=_inheritsLoose; var Alert=function (){ var NAME='alert'; var VERSION='4.0.0-beta.2'; var DATA_KEY='bs.alert'; var EVENT_KEY="." + DATA_KEY; var DATA_API_KEY='.data-api'; var JQUERY_NO_CONFLICT=$.fn[NAME]; var TRANSITION_DURATION=150; var Selector={ DISMISS: '[data-dismiss="alert"]' }; var Event={ CLOSE: "close" + EVENT_KEY, CLOSED: "closed" + EVENT_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY }; var ClassName={ ALERT: 'alert', FADE: 'fade', SHOW: 'show' }; var Alert = function (){ function Alert(element){ this._element=element; } var _proto=Alert.prototype; _proto.close=function close(element){ element=element||this._element; var rootElement=this._getRootElement(element); var customEvent=this._triggerCloseEvent(rootElement); if(customEvent.isDefaultPrevented()){ return; } this._removeElement(rootElement); }; _proto.dispose=function dispose(){ $.removeData(this._element, DATA_KEY); this._element=null; }; _proto._getRootElement=function _getRootElement(element){ var selector=Util.getSelectorFromElement(element); var parent=false; if(selector){ parent=$(selector)[0]; } if(!parent){ parent=$(element).closest("." + ClassName.ALERT)[0]; } return parent; }; _proto._triggerCloseEvent=function _triggerCloseEvent(element){ var closeEvent=$.Event(Event.CLOSE); $(element).trigger(closeEvent); return closeEvent; }; _proto._removeElement=function _removeElement(element){ var _this=this; $(element).removeClass(ClassName.SHOW); if(!Util.supportsTransitionEnd()||!$(element).hasClass(ClassName.FADE)){ this._destroyElement(element); return; } $(element).one(Util.TRANSITION_END, function (event){ return _this._destroyElement(element, event); }).emulateTransitionEnd(TRANSITION_DURATION); }; _proto._destroyElement=function _destroyElement(element){ $(element).detach().trigger(Event.CLOSED).remove(); }; Alert._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var $element=$(this); var data=$element.data(DATA_KEY); if(!data){ data=new Alert(this); $element.data(DATA_KEY, data); } if(config==='close'){ data[config](this); }}); }; Alert._handleDismiss=function _handleDismiss(alertInstance){ return function (event){ if(event){ event.preventDefault(); } alertInstance.close(this); };}; createClass(Alert, null, [{ key: "VERSION", get: function get(){ return VERSION; }}]); return Alert; }(); $(document).on(Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert())); $.fn[NAME]=Alert._jQueryInterface; $.fn[NAME].Constructor=Alert; $.fn[NAME].noConflict=function (){ $.fn[NAME]=JQUERY_NO_CONFLICT; return Alert._jQueryInterface; }; return Alert; }($); var Button=function (){ var NAME='button'; var VERSION='4.0.0-beta.2'; var DATA_KEY='bs.button'; var EVENT_KEY="." + DATA_KEY; var DATA_API_KEY='.data-api'; var JQUERY_NO_CONFLICT=$.fn[NAME]; var ClassName={ ACTIVE: 'active', BUTTON: 'btn', FOCUS: 'focus' }; var Selector={ DATA_TOGGLE_CARROT: '[data-toggle^="button"]', DATA_TOGGLE: '[data-toggle="buttons"]', INPUT: 'input', ACTIVE: '.active', BUTTON: '.btn' }; var Event={ CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY, FOCUS_BLUR_DATA_API: "focus" + EVENT_KEY + DATA_API_KEY + " " + ("blur" + EVENT_KEY + DATA_API_KEY) }; var Button = function (){ function Button(element){ this._element=element; } var _proto=Button.prototype; _proto.toggle=function toggle(){ var triggerChangeEvent=true; var addAriaPressed=true; var rootElement=$(this._element).closest(Selector.DATA_TOGGLE)[0]; if(rootElement){ var input=$(this._element).find(Selector.INPUT)[0]; if(input){ if(input.type==='radio'){ if(input.checked&&$(this._element).hasClass(ClassName.ACTIVE)){ triggerChangeEvent=false; }else{ var activeElement=$(rootElement).find(Selector.ACTIVE)[0]; if(activeElement){ $(activeElement).removeClass(ClassName.ACTIVE); }} } if(triggerChangeEvent){ if(input.hasAttribute('disabled')||rootElement.hasAttribute('disabled')||input.classList.contains('disabled')||rootElement.classList.contains('disabled')){ return; } input.checked = !$(this._element).hasClass(ClassName.ACTIVE); $(input).trigger('change'); } input.focus(); addAriaPressed=false; }} if(addAriaPressed){ this._element.setAttribute('aria-pressed', !$(this._element).hasClass(ClassName.ACTIVE)); } if(triggerChangeEvent){ $(this._element).toggleClass(ClassName.ACTIVE); }}; _proto.dispose=function dispose(){ $.removeData(this._element, DATA_KEY); this._element=null; }; Button._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var data=$(this).data(DATA_KEY); if(!data){ data=new Button(this); $(this).data(DATA_KEY, data); } if(config==='toggle'){ data[config](); }}); }; createClass(Button, null, [{ key: "VERSION", get: function get(){ return VERSION; }}]); return Button; }(); $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event){ event.preventDefault(); var button=event.target; if(!$(button).hasClass(ClassName.BUTTON)){ button=$(button).closest(Selector.BUTTON); } Button._jQueryInterface.call($(button), 'toggle'); }).on(Event.FOCUS_BLUR_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event){ var button=$(event.target).closest(Selector.BUTTON)[0]; $(button).toggleClass(ClassName.FOCUS, /^focus(in)?$/.test(event.type)); }); $.fn[NAME]=Button._jQueryInterface; $.fn[NAME].Constructor=Button; $.fn[NAME].noConflict=function (){ $.fn[NAME]=JQUERY_NO_CONFLICT; return Button._jQueryInterface; }; return Button; }($); var Carousel=function (){ var NAME='carousel'; var VERSION='4.0.0-beta.2'; var DATA_KEY='bs.carousel'; var EVENT_KEY="." + DATA_KEY; var DATA_API_KEY='.data-api'; var JQUERY_NO_CONFLICT=$.fn[NAME]; var TRANSITION_DURATION=600; var ARROW_LEFT_KEYCODE=37; var ARROW_RIGHT_KEYCODE=39; var TOUCHEVENT_COMPAT_WAIT=500; var Default={ interval: 5000, keyboard: true, slide: false, pause: 'hover', wrap: true }; var DefaultType={ interval: '(number|boolean)', keyboard: 'boolean', slide: '(boolean|string)', pause: '(string|boolean)', wrap: 'boolean' }; var Direction={ NEXT: 'next', PREV: 'prev', LEFT: 'left', RIGHT: 'right' }; var Event={ SLIDE: "slide" + EVENT_KEY, SLID: "slid" + EVENT_KEY, KEYDOWN: "keydown" + EVENT_KEY, MOUSEENTER: "mouseenter" + EVENT_KEY, MOUSELEAVE: "mouseleave" + EVENT_KEY, TOUCHEND: "touchend" + EVENT_KEY, LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY }; var ClassName={ CAROUSEL: 'carousel', ACTIVE: 'active', SLIDE: 'slide', RIGHT: 'carousel-item-right', LEFT: 'carousel-item-left', NEXT: 'carousel-item-next', PREV: 'carousel-item-prev', ITEM: 'carousel-item' }; var Selector={ ACTIVE: '.active', ACTIVE_ITEM: '.active.carousel-item', ITEM: '.carousel-item', NEXT_PREV: '.carousel-item-next, .carousel-item-prev', INDICATORS: '.carousel-indicators', DATA_SLIDE: '[data-slide], [data-slide-to]', DATA_RIDE: '[data-ride="carousel"]' }; var Carousel = function (){ function Carousel(element, config){ this._items=null; this._interval=null; this._activeElement=null; this._isPaused=false; this._isSliding=false; this.touchTimeout=null; this._config=this._getConfig(config); this._element=$(element)[0]; this._indicatorsElement=$(this._element).find(Selector.INDICATORS)[0]; this._addEventListeners(); } var _proto=Carousel.prototype; _proto.next=function next(){ if(!this._isSliding){ this._slide(Direction.NEXT); }}; _proto.nextWhenVisible=function nextWhenVisible(){ if(!document.hidden&&$(this._element).is(':visible')&&$(this._element).css('visibility')!=='hidden'){ this.next(); }}; _proto.prev=function prev(){ if(!this._isSliding){ this._slide(Direction.PREV); }}; _proto.pause=function pause(event){ if(!event){ this._isPaused=true; } if($(this._element).find(Selector.NEXT_PREV)[0]&&Util.supportsTransitionEnd()){ Util.triggerTransitionEnd(this._element); this.cycle(true); } clearInterval(this._interval); this._interval=null; }; _proto.cycle=function cycle(event){ if(!event){ this._isPaused=false; } if(this._interval){ clearInterval(this._interval); this._interval=null; } if(this._config.interval&&!this._isPaused){ this._interval=setInterval((document.visibilityState ? this.nextWhenVisible:this.next).bind(this), this._config.interval); }}; _proto.to=function to(index){ var _this=this; this._activeElement=$(this._element).find(Selector.ACTIVE_ITEM)[0]; var activeIndex=this._getItemIndex(this._activeElement); if(index > this._items.length - 1||index < 0){ return; } if(this._isSliding){ $(this._element).one(Event.SLID, function (){ return _this.to(index); }); return; } if(activeIndex===index){ this.pause(); this.cycle(); return; } var direction=index > activeIndex ? Direction.NEXT:Direction.PREV; this._slide(direction, this._items[index]); }; _proto.dispose=function dispose(){ $(this._element).off(EVENT_KEY); $.removeData(this._element, DATA_KEY); this._items=null; this._config=null; this._element=null; this._interval=null; this._isPaused=null; this._isSliding=null; this._activeElement=null; this._indicatorsElement=null; }; _proto._getConfig=function _getConfig(config){ config=$.extend({}, Default, config); Util.typeCheckConfig(NAME, config, DefaultType); return config; }; _proto._addEventListeners=function _addEventListeners(){ var _this2=this; if(this._config.keyboard){ $(this._element).on(Event.KEYDOWN, function (event){ return _this2._keydown(event); }); } if(this._config.pause==='hover'){ $(this._element).on(Event.MOUSEENTER, function (event){ return _this2.pause(event); }).on(Event.MOUSELEAVE, function (event){ return _this2.cycle(event); }); if('ontouchstart' in document.documentElement){ $(this._element).on(Event.TOUCHEND, function (){ _this2.pause(); if(_this2.touchTimeout){ clearTimeout(_this2.touchTimeout); } _this2.touchTimeout=setTimeout(function (event){ return _this2.cycle(event); }, TOUCHEVENT_COMPAT_WAIT + _this2._config.interval); }); }} }; _proto._keydown=function _keydown(event){ if(/input|textarea/i.test(event.target.tagName)){ return; } switch (event.which){ case ARROW_LEFT_KEYCODE: event.preventDefault(); this.prev(); break; case ARROW_RIGHT_KEYCODE: event.preventDefault(); this.next(); break; default: return; }}; _proto._getItemIndex=function _getItemIndex(element){ this._items=$.makeArray($(element).parent().find(Selector.ITEM)); return this._items.indexOf(element); }; _proto._getItemByDirection=function _getItemByDirection(direction, activeElement){ var isNextDirection=direction===Direction.NEXT; var isPrevDirection=direction===Direction.PREV; var activeIndex=this._getItemIndex(activeElement); var lastItemIndex=this._items.length - 1; var isGoingToWrap=isPrevDirection&&activeIndex===0||isNextDirection&&activeIndex===lastItemIndex; if(isGoingToWrap&&!this._config.wrap){ return activeElement; } var delta=direction===Direction.PREV ? -1:1; var itemIndex=(activeIndex + delta) % this._items.length; return itemIndex===-1 ? this._items[this._items.length - 1]:this._items[itemIndex]; }; _proto._triggerSlideEvent=function _triggerSlideEvent(relatedTarget, eventDirectionName){ var targetIndex=this._getItemIndex(relatedTarget); var fromIndex=this._getItemIndex($(this._element).find(Selector.ACTIVE_ITEM)[0]); var slideEvent=$.Event(Event.SLIDE, { relatedTarget: relatedTarget, direction: eventDirectionName, from: fromIndex, to: targetIndex }); $(this._element).trigger(slideEvent); return slideEvent; }; _proto._setActiveIndicatorElement=function _setActiveIndicatorElement(element){ if(this._indicatorsElement){ $(this._indicatorsElement).find(Selector.ACTIVE).removeClass(ClassName.ACTIVE); var nextIndicator=this._indicatorsElement.children[this._getItemIndex(element)]; if(nextIndicator){ $(nextIndicator).addClass(ClassName.ACTIVE); }} }; _proto._slide=function _slide(direction, element){ var _this3=this; var activeElement=$(this._element).find(Selector.ACTIVE_ITEM)[0]; var activeElementIndex=this._getItemIndex(activeElement); var nextElement=element||activeElement&&this._getItemByDirection(direction, activeElement); var nextElementIndex=this._getItemIndex(nextElement); var isCycling=Boolean(this._interval); var directionalClassName; var orderClassName; var eventDirectionName; if(direction===Direction.NEXT){ directionalClassName=ClassName.LEFT; orderClassName=ClassName.NEXT; eventDirectionName=Direction.LEFT; }else{ directionalClassName=ClassName.RIGHT; orderClassName=ClassName.PREV; eventDirectionName=Direction.RIGHT; } if(nextElement&&$(nextElement).hasClass(ClassName.ACTIVE)){ this._isSliding=false; return; } var slideEvent=this._triggerSlideEvent(nextElement, eventDirectionName); if(slideEvent.isDefaultPrevented()){ return; } if(!activeElement||!nextElement){ return; } this._isSliding=true; if(isCycling){ this.pause(); } this._setActiveIndicatorElement(nextElement); var slidEvent=$.Event(Event.SLID, { relatedTarget: nextElement, direction: eventDirectionName, from: activeElementIndex, to: nextElementIndex }); if(Util.supportsTransitionEnd()&&$(this._element).hasClass(ClassName.SLIDE)){ $(nextElement).addClass(orderClassName); Util.reflow(nextElement); $(activeElement).addClass(directionalClassName); $(nextElement).addClass(directionalClassName); $(activeElement).one(Util.TRANSITION_END, function (){ $(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(ClassName.ACTIVE); $(activeElement).removeClass(ClassName.ACTIVE + " " + orderClassName + " " + directionalClassName); _this3._isSliding=false; setTimeout(function (){ return $(_this3._element).trigger(slidEvent); }, 0); }).emulateTransitionEnd(TRANSITION_DURATION); }else{ $(activeElement).removeClass(ClassName.ACTIVE); $(nextElement).addClass(ClassName.ACTIVE); this._isSliding=false; $(this._element).trigger(slidEvent); } if(isCycling){ this.cycle(); }}; Carousel._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var data=$(this).data(DATA_KEY); var _config=$.extend({}, Default, $(this).data()); if(typeof config==='object'){ $.extend(_config, config); } var action=typeof config==='string' ? config:_config.slide; if(!data){ data=new Carousel(this, _config); $(this).data(DATA_KEY, data); } if(typeof config==='number'){ data.to(config); }else if(typeof action==='string'){ if(typeof data[action]==='undefined'){ throw new Error("No method named \"" + action + "\""); } data[action](); }else if(_config.interval){ data.pause(); data.cycle(); }}); }; Carousel._dataApiClickHandler=function _dataApiClickHandler(event){ var selector=Util.getSelectorFromElement(this); if(!selector){ return; } var target=$(selector)[0]; if(!target||!$(target).hasClass(ClassName.CAROUSEL)){ return; } var config=$.extend({}, $(target).data(), $(this).data()); var slideIndex=this.getAttribute('data-slide-to'); if(slideIndex){ config.interval=false; } Carousel._jQueryInterface.call($(target), config); if(slideIndex){ $(target).data(DATA_KEY).to(slideIndex); } event.preventDefault(); }; createClass(Carousel, null, [{ key: "VERSION", get: function get(){ return VERSION; }}, { key: "Default", get: function get(){ return Default; }}]); return Carousel; }(); $(document).on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler); $(window).on(Event.LOAD_DATA_API, function (){ $(Selector.DATA_RIDE).each(function (){ var $carousel=$(this); Carousel._jQueryInterface.call($carousel, $carousel.data()); }); }); $.fn[NAME]=Carousel._jQueryInterface; $.fn[NAME].Constructor=Carousel; $.fn[NAME].noConflict=function (){ $.fn[NAME]=JQUERY_NO_CONFLICT; return Carousel._jQueryInterface; }; return Carousel; }($); var Collapse=function (){ var NAME='collapse'; var VERSION='4.0.0-beta.2'; var DATA_KEY='bs.collapse'; var EVENT_KEY="." + DATA_KEY; var DATA_API_KEY='.data-api'; var JQUERY_NO_CONFLICT=$.fn[NAME]; var TRANSITION_DURATION=600; var Default={ toggle: true, parent: '' }; var DefaultType={ toggle: 'boolean', parent: '(string|element)' }; var Event={ SHOW: "show" + EVENT_KEY, SHOWN: "shown" + EVENT_KEY, HIDE: "hide" + EVENT_KEY, HIDDEN: "hidden" + EVENT_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY }; var ClassName={ SHOW: 'show', COLLAPSE: 'collapse', COLLAPSING: 'collapsing', COLLAPSED: 'collapsed' }; var Dimension={ WIDTH: 'width', HEIGHT: 'height' }; var Selector={ ACTIVES: '.show, .collapsing', DATA_TOGGLE: '[data-toggle="collapse"]' }; var Collapse = function (){ function Collapse(element, config){ this._isTransitioning=false; this._element=element; this._config=this._getConfig(config); this._triggerArray=$.makeArray($("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]"))); var tabToggles=$(Selector.DATA_TOGGLE); for (var i=0; i < tabToggles.length; i++){ var elem=tabToggles[i]; var selector=Util.getSelectorFromElement(elem); if(selector!==null&&$(selector).filter(element).length > 0){ this._triggerArray.push(elem); }} this._parent=this._config.parent ? this._getParent():null; if(!this._config.parent){ this._addAriaAndCollapsedClass(this._element, this._triggerArray); } if(this._config.toggle){ this.toggle(); }} var _proto=Collapse.prototype; _proto.toggle=function toggle(){ if($(this._element).hasClass(ClassName.SHOW)){ this.hide(); }else{ this.show(); }}; _proto.show=function show(){ var _this=this; if(this._isTransitioning||$(this._element).hasClass(ClassName.SHOW)){ return; } var actives; var activesData; if(this._parent){ actives=$.makeArray($(this._parent).children().children(Selector.ACTIVES)); if(!actives.length){ actives=null; }} if(actives){ activesData=$(actives).data(DATA_KEY); if(activesData&&activesData._isTransitioning){ return; }} var startEvent=$.Event(Event.SHOW); $(this._element).trigger(startEvent); if(startEvent.isDefaultPrevented()){ return; } if(actives){ Collapse._jQueryInterface.call($(actives), 'hide'); if(!activesData){ $(actives).data(DATA_KEY, null); }} var dimension=this._getDimension(); $(this._element).removeClass(ClassName.COLLAPSE).addClass(ClassName.COLLAPSING); this._element.style[dimension]=0; if(this._triggerArray.length){ $(this._triggerArray).removeClass(ClassName.COLLAPSED).attr('aria-expanded', true); } this.setTransitioning(true); var complete=function complete(){ $(_this._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).addClass(ClassName.SHOW); _this._element.style[dimension]=''; _this.setTransitioning(false); $(_this._element).trigger(Event.SHOWN); }; if(!Util.supportsTransitionEnd()){ complete(); return; } var capitalizedDimension=dimension[0].toUpperCase() + dimension.slice(1); var scrollSize="scroll" + capitalizedDimension; $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); this._element.style[dimension]=this._element[scrollSize] + "px"; }; _proto.hide=function hide(){ var _this2=this; if(this._isTransitioning||!$(this._element).hasClass(ClassName.SHOW)){ return; } var startEvent=$.Event(Event.HIDE); $(this._element).trigger(startEvent); if(startEvent.isDefaultPrevented()){ return; } var dimension=this._getDimension(); this._element.style[dimension]=this._element.getBoundingClientRect()[dimension] + "px"; Util.reflow(this._element); $(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.SHOW); if(this._triggerArray.length){ for (var i=0; i < this._triggerArray.length; i++){ var trigger=this._triggerArray[i]; var selector=Util.getSelectorFromElement(trigger); if(selector!==null){ var $elem=$(selector); if(!$elem.hasClass(ClassName.SHOW)){ $(trigger).addClass(ClassName.COLLAPSED).attr('aria-expanded', false); }} }} this.setTransitioning(true); var complete=function complete(){ _this2.setTransitioning(false); $(_this2._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).trigger(Event.HIDDEN); }; this._element.style[dimension]=''; if(!Util.supportsTransitionEnd()){ complete(); return; } $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); }; _proto.setTransitioning=function setTransitioning(isTransitioning){ this._isTransitioning=isTransitioning; }; _proto.dispose=function dispose(){ $.removeData(this._element, DATA_KEY); this._config=null; this._parent=null; this._element=null; this._triggerArray=null; this._isTransitioning=null; }; _proto._getConfig=function _getConfig(config){ config=$.extend({}, Default, config); config.toggle=Boolean(config.toggle); Util.typeCheckConfig(NAME, config, DefaultType); return config; }; _proto._getDimension=function _getDimension(){ var hasWidth=$(this._element).hasClass(Dimension.WIDTH); return hasWidth ? Dimension.WIDTH:Dimension.HEIGHT; }; _proto._getParent=function _getParent(){ var _this3=this; var parent=null; if(Util.isElement(this._config.parent)){ parent=this._config.parent; if(typeof this._config.parent.jquery!=='undefined'){ parent=this._config.parent[0]; }}else{ parent=$(this._config.parent)[0]; } var selector="[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]"; $(parent).find(selector).each(function (i, element){ _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]); }); return parent; }; _proto._addAriaAndCollapsedClass=function _addAriaAndCollapsedClass(element, triggerArray){ if(element){ var isOpen=$(element).hasClass(ClassName.SHOW); if(triggerArray.length){ $(triggerArray).toggleClass(ClassName.COLLAPSED, !isOpen).attr('aria-expanded', isOpen); }} }; Collapse._getTargetFromElement=function _getTargetFromElement(element){ var selector=Util.getSelectorFromElement(element); return selector ? $(selector)[0]:null; }; Collapse._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var $this=$(this); var data=$this.data(DATA_KEY); var _config=$.extend({}, Default, $this.data(), typeof config==='object'&&config); if(!data&&_config.toggle&&/show|hide/.test(config)){ _config.toggle=false; } if(!data){ data=new Collapse(this, _config); $this.data(DATA_KEY, data); } if(typeof config==='string'){ if(typeof data[config]==='undefined'){ throw new Error("No method named \"" + config + "\""); } data[config](); }}); }; createClass(Collapse, null, [{ key: "VERSION", get: function get(){ return VERSION; }}, { key: "Default", get: function get(){ return Default; }}]); return Collapse; }(); $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event){ if(event.currentTarget.tagName==='A'){ event.preventDefault(); } var $trigger=$(this); var selector=Util.getSelectorFromElement(this); $(selector).each(function (){ var $target=$(this); var data=$target.data(DATA_KEY); var config=data ? 'toggle':$trigger.data(); Collapse._jQueryInterface.call($target, config); }); }); $.fn[NAME]=Collapse._jQueryInterface; $.fn[NAME].Constructor=Collapse; $.fn[NAME].noConflict=function (){ $.fn[NAME]=JQUERY_NO_CONFLICT; return Collapse._jQueryInterface; }; return Collapse; }($); var Dropdown=function (){ if(typeof Popper==='undefined'){ throw new Error('Bootstrap dropdown require Popper.js (https://popper.js.org)'); } var NAME='dropdown'; var VERSION='4.0.0-beta.2'; var DATA_KEY='bs.dropdown'; var EVENT_KEY="." + DATA_KEY; var DATA_API_KEY='.data-api'; var JQUERY_NO_CONFLICT=$.fn[NAME]; var ESCAPE_KEYCODE=27; var SPACE_KEYCODE=32; var TAB_KEYCODE=9; var ARROW_UP_KEYCODE=38; var ARROW_DOWN_KEYCODE=40; var RIGHT_MOUSE_BUTTON_WHICH=3; var REGEXP_KEYDOWN=new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE); var Event={ HIDE: "hide" + EVENT_KEY, HIDDEN: "hidden" + EVENT_KEY, SHOW: "show" + EVENT_KEY, SHOWN: "shown" + EVENT_KEY, CLICK: "click" + EVENT_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY, KEYDOWN_DATA_API: "keydown" + EVENT_KEY + DATA_API_KEY, KEYUP_DATA_API: "keyup" + EVENT_KEY + DATA_API_KEY }; var ClassName={ DISABLED: 'disabled', SHOW: 'show', DROPUP: 'dropup', MENURIGHT: 'dropdown-menu-right', MENULEFT: 'dropdown-menu-left' }; var Selector={ DATA_TOGGLE: '[data-toggle="dropdown"]', FORM_CHILD: '.dropdown form', MENU: '.dropdown-menu', NAVBAR_NAV: '.navbar-nav', VISIBLE_ITEMS: '.dropdown-menu .dropdown-item:not(.disabled)' }; var AttachmentMap={ TOP: 'top-start', TOPEND: 'top-end', BOTTOM: 'bottom-start', BOTTOMEND: 'bottom-end' }; var Default={ offset: 0, flip: true }; var DefaultType={ offset: '(number|string|function)', flip: 'boolean' }; var Dropdown = function (){ function Dropdown(element, config){ this._element=element; this._popper=null; this._config=this._getConfig(config); this._menu=this._getMenuElement(); this._inNavbar=this._detectNavbar(); this._addEventListeners(); } var _proto=Dropdown.prototype; _proto.toggle=function toggle(){ if(this._element.disabled||$(this._element).hasClass(ClassName.DISABLED)){ return; } var parent=Dropdown._getParentFromElement(this._element); var isActive=$(this._menu).hasClass(ClassName.SHOW); Dropdown._clearMenus(); if(isActive){ return; } var relatedTarget={ relatedTarget: this._element }; var showEvent=$.Event(Event.SHOW, relatedTarget); $(parent).trigger(showEvent); if(showEvent.isDefaultPrevented()){ return; } var element=this._element; if($(parent).hasClass(ClassName.DROPUP)){ if($(this._menu).hasClass(ClassName.MENULEFT)||$(this._menu).hasClass(ClassName.MENURIGHT)){ element=parent; }} this._popper=new Popper(element, this._menu, this._getPopperConfig()); if('ontouchstart' in document.documentElement&&!$(parent).closest(Selector.NAVBAR_NAV).length){ $('body').children().on('mouseover', null, $.noop); } this._element.focus(); this._element.setAttribute('aria-expanded', true); $(this._menu).toggleClass(ClassName.SHOW); $(parent).toggleClass(ClassName.SHOW).trigger($.Event(Event.SHOWN, relatedTarget)); }; _proto.dispose=function dispose(){ $.removeData(this._element, DATA_KEY); $(this._element).off(EVENT_KEY); this._element=null; this._menu=null; if(this._popper!==null){ this._popper.destroy(); } this._popper=null; }; _proto.update=function update(){ this._inNavbar=this._detectNavbar(); if(this._popper!==null){ this._popper.scheduleUpdate(); }}; _proto._addEventListeners=function _addEventListeners(){ var _this=this; $(this._element).on(Event.CLICK, function (event){ event.preventDefault(); event.stopPropagation(); _this.toggle(); }); }; _proto._getConfig=function _getConfig(config){ config=$.extend({}, this.constructor.Default, $(this._element).data(), config); Util.typeCheckConfig(NAME, config, this.constructor.DefaultType); return config; }; _proto._getMenuElement=function _getMenuElement(){ if(!this._menu){ var parent=Dropdown._getParentFromElement(this._element); this._menu=$(parent).find(Selector.MENU)[0]; } return this._menu; }; _proto._getPlacement=function _getPlacement(){ var $parentDropdown=$(this._element).parent(); var placement=AttachmentMap.BOTTOM; if($parentDropdown.hasClass(ClassName.DROPUP)){ placement=AttachmentMap.TOP; if($(this._menu).hasClass(ClassName.MENURIGHT)){ placement=AttachmentMap.TOPEND; }}else if($(this._menu).hasClass(ClassName.MENURIGHT)){ placement=AttachmentMap.BOTTOMEND; } return placement; }; _proto._detectNavbar=function _detectNavbar(){ return $(this._element).closest('.navbar').length > 0; }; _proto._getPopperConfig=function _getPopperConfig(){ var _this2=this; var offsetConf={}; if(typeof this._config.offset==='function'){ offsetConf.fn=function (data){ data.offsets=$.extend({}, data.offsets, _this2._config.offset(data.offsets)||{}); return data; };}else{ offsetConf.offset=this._config.offset; } var popperConfig={ placement: this._getPlacement(), modifiers: { offset: offsetConf, flip: { enabled: this._config.flip }} }; if(this._inNavbar){ popperConfig.modifiers.applyStyle={ enabled: !this._inNavbar };} return popperConfig; }; Dropdown._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var data=$(this).data(DATA_KEY); var _config=typeof config==='object' ? config:null; if(!data){ data=new Dropdown(this, _config); $(this).data(DATA_KEY, data); } if(typeof config==='string'){ if(typeof data[config]==='undefined'){ throw new Error("No method named \"" + config + "\""); } data[config](); }}); }; Dropdown._clearMenus=function _clearMenus(event){ if(event&&(event.which===RIGHT_MOUSE_BUTTON_WHICH||event.type==='keyup'&&event.which!==TAB_KEYCODE)){ return; } var toggles=$.makeArray($(Selector.DATA_TOGGLE)); for (var i=0; i < toggles.length; i++){ var parent=Dropdown._getParentFromElement(toggles[i]); var context=$(toggles[i]).data(DATA_KEY); var relatedTarget={ relatedTarget: toggles[i] }; if(!context){ continue; } var dropdownMenu=context._menu; if(!$(parent).hasClass(ClassName.SHOW)){ continue; } if(event&&(event.type==='click'&&/input|textarea/i.test(event.target.tagName)||event.type==='keyup'&&event.which===TAB_KEYCODE)&&$.contains(parent, event.target)){ continue; } var hideEvent=$.Event(Event.HIDE, relatedTarget); $(parent).trigger(hideEvent); if(hideEvent.isDefaultPrevented()){ continue; } if('ontouchstart' in document.documentElement){ $('body').children().off('mouseover', null, $.noop); } toggles[i].setAttribute('aria-expanded', 'false'); $(dropdownMenu).removeClass(ClassName.SHOW); $(parent).removeClass(ClassName.SHOW).trigger($.Event(Event.HIDDEN, relatedTarget)); }}; Dropdown._getParentFromElement=function _getParentFromElement(element){ var parent; var selector=Util.getSelectorFromElement(element); if(selector){ parent=$(selector)[0]; } return parent||element.parentNode; }; Dropdown._dataApiKeydownHandler=function _dataApiKeydownHandler(event){ if(!REGEXP_KEYDOWN.test(event.which)||/button/i.test(event.target.tagName)&&event.which===SPACE_KEYCODE||/input|textarea/i.test(event.target.tagName)){ return; } event.preventDefault(); event.stopPropagation(); if(this.disabled||$(this).hasClass(ClassName.DISABLED)){ return; } var parent=Dropdown._getParentFromElement(this); var isActive=$(parent).hasClass(ClassName.SHOW); if(!isActive&&(event.which!==ESCAPE_KEYCODE||event.which!==SPACE_KEYCODE)||isActive&&(event.which===ESCAPE_KEYCODE||event.which===SPACE_KEYCODE)){ if(event.which===ESCAPE_KEYCODE){ var toggle=$(parent).find(Selector.DATA_TOGGLE)[0]; $(toggle).trigger('focus'); } $(this).trigger('click'); return; } var items=$(parent).find(Selector.VISIBLE_ITEMS).get(); if(!items.length){ return; } var index=items.indexOf(event.target); if(event.which===ARROW_UP_KEYCODE&&index > 0){ index--; } if(event.which===ARROW_DOWN_KEYCODE&&index < items.length - 1){ index++; } if(index < 0){ index=0; } items[index].focus(); }; createClass(Dropdown, null, [{ key: "VERSION", get: function get(){ return VERSION; }}, { key: "Default", get: function get(){ return Default; }}, { key: "DefaultType", get: function get(){ return DefaultType; }}]); return Dropdown; }(); $(document).on(Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.MENU, Dropdown._dataApiKeydownHandler).on(Event.CLICK_DATA_API + " " + Event.KEYUP_DATA_API, Dropdown._clearMenus).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event){ event.preventDefault(); event.stopPropagation(); Dropdown._jQueryInterface.call($(this), 'toggle'); }).on(Event.CLICK_DATA_API, Selector.FORM_CHILD, function (e){ e.stopPropagation(); }); $.fn[NAME]=Dropdown._jQueryInterface; $.fn[NAME].Constructor=Dropdown; $.fn[NAME].noConflict=function (){ $.fn[NAME]=JQUERY_NO_CONFLICT; return Dropdown._jQueryInterface; }; return Dropdown; }($, Popper); var Modal=function (){ var NAME='modal'; var VERSION='4.0.0-beta.2'; var DATA_KEY='bs.modal'; var EVENT_KEY="." + DATA_KEY; var DATA_API_KEY='.data-api'; var JQUERY_NO_CONFLICT=$.fn[NAME]; var TRANSITION_DURATION=300; var BACKDROP_TRANSITION_DURATION=150; var ESCAPE_KEYCODE=27; var Default={ backdrop: true, keyboard: true, focus: true, show: true }; var DefaultType={ backdrop: '(boolean|string)', keyboard: 'boolean', focus: 'boolean', show: 'boolean' }; var Event={ HIDE: "hide" + EVENT_KEY, HIDDEN: "hidden" + EVENT_KEY, SHOW: "show" + EVENT_KEY, SHOWN: "shown" + EVENT_KEY, FOCUSIN: "focusin" + EVENT_KEY, RESIZE: "resize" + EVENT_KEY, CLICK_DISMISS: "click.dismiss" + EVENT_KEY, KEYDOWN_DISMISS: "keydown.dismiss" + EVENT_KEY, MOUSEUP_DISMISS: "mouseup.dismiss" + EVENT_KEY, MOUSEDOWN_DISMISS: "mousedown.dismiss" + EVENT_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY }; var ClassName={ SCROLLBAR_MEASURER: 'modal-scrollbar-measure', BACKDROP: 'modal-backdrop', OPEN: 'modal-open', FADE: 'fade', SHOW: 'show' }; var Selector={ DIALOG: '.modal-dialog', DATA_TOGGLE: '[data-toggle="modal"]', DATA_DISMISS: '[data-dismiss="modal"]', FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top', STICKY_CONTENT: '.sticky-top', NAVBAR_TOGGLER: '.navbar-toggler' }; var Modal = function (){ function Modal(element, config){ this._config=this._getConfig(config); this._element=element; this._dialog=$(element).find(Selector.DIALOG)[0]; this._backdrop=null; this._isShown=false; this._isBodyOverflowing=false; this._ignoreBackdropClick=false; this._originalBodyPadding=0; this._scrollbarWidth=0; } var _proto=Modal.prototype; _proto.toggle=function toggle(relatedTarget){ return this._isShown ? this.hide():this.show(relatedTarget); }; _proto.show=function show(relatedTarget){ var _this=this; if(this._isTransitioning||this._isShown){ return; } if(Util.supportsTransitionEnd()&&$(this._element).hasClass(ClassName.FADE)){ this._isTransitioning=true; } var showEvent=$.Event(Event.SHOW, { relatedTarget: relatedTarget }); $(this._element).trigger(showEvent); if(this._isShown||showEvent.isDefaultPrevented()){ return; } this._isShown=true; this._checkScrollbar(); this._setScrollbar(); this._adjustDialog(); $(document.body).addClass(ClassName.OPEN); this._setEscapeEvent(); this._setResizeEvent(); $(this._element).on(Event.CLICK_DISMISS, Selector.DATA_DISMISS, function (event){ return _this.hide(event); }); $(this._dialog).on(Event.MOUSEDOWN_DISMISS, function (){ $(_this._element).one(Event.MOUSEUP_DISMISS, function (event){ if($(event.target).is(_this._element)){ _this._ignoreBackdropClick=true; }}); }); this._showBackdrop(function (){ return _this._showElement(relatedTarget); }); }; _proto.hide=function hide(event){ var _this2=this; if(event){ event.preventDefault(); } if(this._isTransitioning||!this._isShown){ return; } var hideEvent=$.Event(Event.HIDE); $(this._element).trigger(hideEvent); if(!this._isShown||hideEvent.isDefaultPrevented()){ return; } this._isShown=false; var transition=Util.supportsTransitionEnd()&&$(this._element).hasClass(ClassName.FADE); if(transition){ this._isTransitioning=true; } this._setEscapeEvent(); this._setResizeEvent(); $(document).off(Event.FOCUSIN); $(this._element).removeClass(ClassName.SHOW); $(this._element).off(Event.CLICK_DISMISS); $(this._dialog).off(Event.MOUSEDOWN_DISMISS); if(transition){ $(this._element).one(Util.TRANSITION_END, function (event){ return _this2._hideModal(event); }).emulateTransitionEnd(TRANSITION_DURATION); }else{ this._hideModal(); }}; _proto.dispose=function dispose(){ $.removeData(this._element, DATA_KEY); $(window, document, this._element, this._backdrop).off(EVENT_KEY); this._config=null; this._element=null; this._dialog=null; this._backdrop=null; this._isShown=null; this._isBodyOverflowing=null; this._ignoreBackdropClick=null; this._scrollbarWidth=null; }; _proto.handleUpdate=function handleUpdate(){ this._adjustDialog(); }; _proto._getConfig=function _getConfig(config){ config=$.extend({}, Default, config); Util.typeCheckConfig(NAME, config, DefaultType); return config; }; _proto._showElement=function _showElement(relatedTarget){ var _this3=this; var transition=Util.supportsTransitionEnd()&&$(this._element).hasClass(ClassName.FADE); if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE){ document.body.appendChild(this._element); } this._element.style.display='block'; this._element.removeAttribute('aria-hidden'); this._element.scrollTop=0; if(transition){ Util.reflow(this._element); } $(this._element).addClass(ClassName.SHOW); if(this._config.focus){ this._enforceFocus(); } var shownEvent=$.Event(Event.SHOWN, { relatedTarget: relatedTarget }); var transitionComplete=function transitionComplete(){ if(_this3._config.focus){ _this3._element.focus(); } _this3._isTransitioning=false; $(_this3._element).trigger(shownEvent); }; if(transition){ $(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(TRANSITION_DURATION); }else{ transitionComplete(); }}; _proto._enforceFocus=function _enforceFocus(){ var _this4=this; $(document).off(Event.FOCUSIN) .on(Event.FOCUSIN, function (event){ if(document!==event.target&&_this4._element!==event.target&&!$(_this4._element).has(event.target).length){ _this4._element.focus(); }}); }; _proto._setEscapeEvent=function _setEscapeEvent(){ var _this5=this; if(this._isShown&&this._config.keyboard){ $(this._element).on(Event.KEYDOWN_DISMISS, function (event){ if(event.which===ESCAPE_KEYCODE){ event.preventDefault(); _this5.hide(); }}); }else if(!this._isShown){ $(this._element).off(Event.KEYDOWN_DISMISS); }}; _proto._setResizeEvent=function _setResizeEvent(){ var _this6=this; if(this._isShown){ $(window).on(Event.RESIZE, function (event){ return _this6.handleUpdate(event); }); }else{ $(window).off(Event.RESIZE); }}; _proto._hideModal=function _hideModal(){ var _this7=this; this._element.style.display='none'; this._element.setAttribute('aria-hidden', true); this._isTransitioning=false; this._showBackdrop(function (){ $(document.body).removeClass(ClassName.OPEN); _this7._resetAdjustments(); _this7._resetScrollbar(); $(_this7._element).trigger(Event.HIDDEN); }); }; _proto._removeBackdrop=function _removeBackdrop(){ if(this._backdrop){ $(this._backdrop).remove(); this._backdrop=null; }}; _proto._showBackdrop=function _showBackdrop(callback){ var _this8=this; var animate=$(this._element).hasClass(ClassName.FADE) ? ClassName.FADE:''; if(this._isShown&&this._config.backdrop){ var doAnimate=Util.supportsTransitionEnd()&&animate; this._backdrop=document.createElement('div'); this._backdrop.className=ClassName.BACKDROP; if(animate){ $(this._backdrop).addClass(animate); } $(this._backdrop).appendTo(document.body); $(this._element).on(Event.CLICK_DISMISS, function (event){ if(_this8._ignoreBackdropClick){ _this8._ignoreBackdropClick=false; return; } if(event.target!==event.currentTarget){ return; } if(_this8._config.backdrop==='static'){ _this8._element.focus(); }else{ _this8.hide(); }}); if(doAnimate){ Util.reflow(this._backdrop); } $(this._backdrop).addClass(ClassName.SHOW); if(!callback){ return; } if(!doAnimate){ callback(); return; } $(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(BACKDROP_TRANSITION_DURATION); }else if(!this._isShown&&this._backdrop){ $(this._backdrop).removeClass(ClassName.SHOW); var callbackRemove=function callbackRemove(){ _this8._removeBackdrop(); if(callback){ callback(); }}; if(Util.supportsTransitionEnd()&&$(this._element).hasClass(ClassName.FADE)){ $(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(BACKDROP_TRANSITION_DURATION); }else{ callbackRemove(); }}else if(callback){ callback(); }}; _proto._adjustDialog=function _adjustDialog(){ var isModalOverflowing=this._element.scrollHeight > document.documentElement.clientHeight; if(!this._isBodyOverflowing&&isModalOverflowing){ this._element.style.paddingLeft=this._scrollbarWidth + "px"; } if(this._isBodyOverflowing&&!isModalOverflowing){ this._element.style.paddingRight=this._scrollbarWidth + "px"; }}; _proto._resetAdjustments=function _resetAdjustments(){ this._element.style.paddingLeft=''; this._element.style.paddingRight=''; }; _proto._checkScrollbar=function _checkScrollbar(){ var rect=document.body.getBoundingClientRect(); this._isBodyOverflowing=rect.left + rect.right < window.innerWidth; this._scrollbarWidth=this._getScrollbarWidth(); }; _proto._setScrollbar=function _setScrollbar(){ var _this9=this; if(this._isBodyOverflowing){ $(Selector.FIXED_CONTENT).each(function (index, element){ var actualPadding=$(element)[0].style.paddingRight; var calculatedPadding=$(element).css('padding-right'); $(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px"); }); $(Selector.STICKY_CONTENT).each(function (index, element){ var actualMargin=$(element)[0].style.marginRight; var calculatedMargin=$(element).css('margin-right'); $(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px"); }); $(Selector.NAVBAR_TOGGLER).each(function (index, element){ var actualMargin=$(element)[0].style.marginRight; var calculatedMargin=$(element).css('margin-right'); $(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) + _this9._scrollbarWidth + "px"); }); var actualPadding=document.body.style.paddingRight; var calculatedPadding=$('body').css('padding-right'); $('body').data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px"); }}; _proto._resetScrollbar=function _resetScrollbar(){ $(Selector.FIXED_CONTENT).each(function (index, element){ var padding=$(element).data('padding-right'); if(typeof padding!=='undefined'){ $(element).css('padding-right', padding).removeData('padding-right'); }}); $(Selector.STICKY_CONTENT + ", " + Selector.NAVBAR_TOGGLER).each(function (index, element){ var margin=$(element).data('margin-right'); if(typeof margin!=='undefined'){ $(element).css('margin-right', margin).removeData('margin-right'); }}); var padding=$('body').data('padding-right'); if(typeof padding!=='undefined'){ $('body').css('padding-right', padding).removeData('padding-right'); }}; _proto._getScrollbarWidth=function _getScrollbarWidth(){ var scrollDiv=document.createElement('div'); scrollDiv.className=ClassName.SCROLLBAR_MEASURER; document.body.appendChild(scrollDiv); var scrollbarWidth=scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth; document.body.removeChild(scrollDiv); return scrollbarWidth; }; Modal._jQueryInterface=function _jQueryInterface(config, relatedTarget){ return this.each(function (){ var data=$(this).data(DATA_KEY); var _config=$.extend({}, Modal.Default, $(this).data(), typeof config==='object'&&config); if(!data){ data=new Modal(this, _config); $(this).data(DATA_KEY, data); } if(typeof config==='string'){ if(typeof data[config]==='undefined'){ throw new Error("No method named \"" + config + "\""); } data[config](relatedTarget); }else if(_config.show){ data.show(relatedTarget); }}); }; createClass(Modal, null, [{ key: "VERSION", get: function get(){ return VERSION; }}, { key: "Default", get: function get(){ return Default; }}]); return Modal; }(); $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event){ var _this10=this; var target; var selector=Util.getSelectorFromElement(this); if(selector){ target=$(selector)[0]; } var config=$(target).data(DATA_KEY) ? 'toggle':$.extend({}, $(target).data(), $(this).data()); if(this.tagName==='A'||this.tagName==='AREA'){ event.preventDefault(); } var $target=$(target).one(Event.SHOW, function (showEvent){ if(showEvent.isDefaultPrevented()){ return; } $target.one(Event.HIDDEN, function (){ if($(_this10).is(':visible')){ _this10.focus(); }}); }); Modal._jQueryInterface.call($(target), config, this); }); $.fn[NAME]=Modal._jQueryInterface; $.fn[NAME].Constructor=Modal; $.fn[NAME].noConflict=function (){ $.fn[NAME]=JQUERY_NO_CONFLICT; return Modal._jQueryInterface; }; return Modal; }($); var Tooltip=function (){ if(typeof Popper==='undefined'){ throw new Error('Bootstrap tooltips require Popper.js (https://popper.js.org)'); } var NAME='tooltip'; var VERSION='4.0.0-beta.2'; var DATA_KEY='bs.tooltip'; var EVENT_KEY="." + DATA_KEY; var JQUERY_NO_CONFLICT=$.fn[NAME]; var TRANSITION_DURATION=150; var CLASS_PREFIX='bs-tooltip'; var BSCLS_PREFIX_REGEX=new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g'); var DefaultType={ animation: 'boolean', template: 'string', title: '(string|element|function)', trigger: 'string', delay: '(number|object)', html: 'boolean', selector: '(string|boolean)', placement: '(string|function)', offset: '(number|string)', container: '(string|element|boolean)', fallbackPlacement: '(string|array)' }; var AttachmentMap={ AUTO: 'auto', TOP: 'top', RIGHT: 'right', BOTTOM: 'bottom', LEFT: 'left' }; var Default={ animation: true, template: '', trigger: 'hover focus', title: '', delay: 0, html: false, selector: false, placement: 'top', offset: 0, container: false, fallbackPlacement: 'flip' }; var HoverState={ SHOW: 'show', OUT: 'out' }; var Event={ HIDE: "hide" + EVENT_KEY, HIDDEN: "hidden" + EVENT_KEY, SHOW: "show" + EVENT_KEY, SHOWN: "shown" + EVENT_KEY, INSERTED: "inserted" + EVENT_KEY, CLICK: "click" + EVENT_KEY, FOCUSIN: "focusin" + EVENT_KEY, FOCUSOUT: "focusout" + EVENT_KEY, MOUSEENTER: "mouseenter" + EVENT_KEY, MOUSELEAVE: "mouseleave" + EVENT_KEY }; var ClassName={ FADE: 'fade', SHOW: 'show' }; var Selector={ TOOLTIP: '.tooltip', TOOLTIP_INNER: '.tooltip-inner', ARROW: '.arrow' }; var Trigger={ HOVER: 'hover', FOCUS: 'focus', CLICK: 'click', MANUAL: 'manual' }; var Tooltip = function (){ function Tooltip(element, config){ this._isEnabled=true; this._timeout=0; this._hoverState=''; this._activeTrigger={}; this._popper=null; this.element=element; this.config=this._getConfig(config); this.tip=null; this._setListeners(); } var _proto=Tooltip.prototype; _proto.enable=function enable(){ this._isEnabled=true; }; _proto.disable=function disable(){ this._isEnabled=false; }; _proto.toggleEnabled=function toggleEnabled(){ this._isEnabled = !this._isEnabled; }; _proto.toggle=function toggle(event){ if(!this._isEnabled){ return; } if(event){ var dataKey=this.constructor.DATA_KEY; var context=$(event.currentTarget).data(dataKey); if(!context){ context=new this.constructor(event.currentTarget, this._getDelegateConfig()); $(event.currentTarget).data(dataKey, context); } context._activeTrigger.click = !context._activeTrigger.click; if(context._isWithActiveTrigger()){ context._enter(null, context); }else{ context._leave(null, context); }}else{ if($(this.getTipElement()).hasClass(ClassName.SHOW)){ this._leave(null, this); return; } this._enter(null, this); }}; _proto.dispose=function dispose(){ clearTimeout(this._timeout); $.removeData(this.element, this.constructor.DATA_KEY); $(this.element).off(this.constructor.EVENT_KEY); $(this.element).closest('.modal').off('hide.bs.modal'); if(this.tip){ $(this.tip).remove(); } this._isEnabled=null; this._timeout=null; this._hoverState=null; this._activeTrigger=null; if(this._popper!==null){ this._popper.destroy(); } this._popper=null; this.element=null; this.config=null; this.tip=null; }; _proto.show=function show(){ var _this=this; if($(this.element).css('display')==='none'){ throw new Error('Please use show on visible elements'); } var showEvent=$.Event(this.constructor.Event.SHOW); if(this.isWithContent()&&this._isEnabled){ $(this.element).trigger(showEvent); var isInTheDom=$.contains(this.element.ownerDocument.documentElement, this.element); if(showEvent.isDefaultPrevented()||!isInTheDom){ return; } var tip=this.getTipElement(); var tipId=Util.getUID(this.constructor.NAME); tip.setAttribute('id', tipId); this.element.setAttribute('aria-describedby', tipId); this.setContent(); if(this.config.animation){ $(tip).addClass(ClassName.FADE); } var placement=typeof this.config.placement==='function' ? this.config.placement.call(this, tip, this.element):this.config.placement; var attachment=this._getAttachment(placement); this.addAttachmentClass(attachment); var container=this.config.container===false ? document.body:$(this.config.container); $(tip).data(this.constructor.DATA_KEY, this); if(!$.contains(this.element.ownerDocument.documentElement, this.tip)){ $(tip).appendTo(container); } $(this.element).trigger(this.constructor.Event.INSERTED); this._popper=new Popper(this.element, tip, { placement: attachment, modifiers: { offset: { offset: this.config.offset }, flip: { behavior: this.config.fallbackPlacement }, arrow: { element: Selector.ARROW }}, onCreate: function onCreate(data){ if(data.originalPlacement!==data.placement){ _this._handlePopperPlacementChange(data); }}, onUpdate: function onUpdate(data){ _this._handlePopperPlacementChange(data); }}); $(tip).addClass(ClassName.SHOW); if('ontouchstart' in document.documentElement){ $('body').children().on('mouseover', null, $.noop); } var complete=function complete(){ if(_this.config.animation){ _this._fixTransition(); } var prevHoverState=_this._hoverState; _this._hoverState=null; $(_this.element).trigger(_this.constructor.Event.SHOWN); if(prevHoverState===HoverState.OUT){ _this._leave(null, _this); }}; if(Util.supportsTransitionEnd()&&$(this.tip).hasClass(ClassName.FADE)){ $(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(Tooltip._TRANSITION_DURATION); }else{ complete(); }} }; _proto.hide=function hide(callback){ var _this2=this; var tip=this.getTipElement(); var hideEvent=$.Event(this.constructor.Event.HIDE); var complete=function complete(){ if(_this2._hoverState!==HoverState.SHOW&&tip.parentNode){ tip.parentNode.removeChild(tip); } _this2._cleanTipClass(); _this2.element.removeAttribute('aria-describedby'); $(_this2.element).trigger(_this2.constructor.Event.HIDDEN); if(_this2._popper!==null){ _this2._popper.destroy(); } if(callback){ callback(); }}; $(this.element).trigger(hideEvent); if(hideEvent.isDefaultPrevented()){ return; } $(tip).removeClass(ClassName.SHOW); if('ontouchstart' in document.documentElement){ $('body').children().off('mouseover', null, $.noop); } this._activeTrigger[Trigger.CLICK]=false; this._activeTrigger[Trigger.FOCUS]=false; this._activeTrigger[Trigger.HOVER]=false; if(Util.supportsTransitionEnd()&&$(this.tip).hasClass(ClassName.FADE)){ $(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); }else{ complete(); } this._hoverState=''; }; _proto.update=function update(){ if(this._popper!==null){ this._popper.scheduleUpdate(); }}; _proto.isWithContent=function isWithContent(){ return Boolean(this.getTitle()); }; _proto.addAttachmentClass=function addAttachmentClass(attachment){ $(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment); }; _proto.getTipElement=function getTipElement(){ this.tip=this.tip||$(this.config.template)[0]; return this.tip; }; _proto.setContent=function setContent(){ var $tip=$(this.getTipElement()); this.setElementContent($tip.find(Selector.TOOLTIP_INNER), this.getTitle()); $tip.removeClass(ClassName.FADE + " " + ClassName.SHOW); }; _proto.setElementContent=function setElementContent($element, content){ var html=this.config.html; if(typeof content==='object'&&(content.nodeType||content.jquery)){ if(html){ if(!$(content).parent().is($element)){ $element.empty().append(content); }}else{ $element.text($(content).text()); }}else{ $element[html ? 'html':'text'](content); }}; _proto.getTitle=function getTitle(){ var title=this.element.getAttribute('data-original-title'); if(!title){ title=typeof this.config.title==='function' ? this.config.title.call(this.element):this.config.title; } return title; }; _proto._getAttachment=function _getAttachment(placement){ return AttachmentMap[placement.toUpperCase()]; }; _proto._setListeners=function _setListeners(){ var _this3=this; var triggers=this.config.trigger.split(' '); triggers.forEach(function (trigger){ if(trigger==='click'){ $(_this3.element).on(_this3.constructor.Event.CLICK, _this3.config.selector, function (event){ return _this3.toggle(event); }); }else if(trigger!==Trigger.MANUAL){ var eventIn=trigger===Trigger.HOVER ? _this3.constructor.Event.MOUSEENTER:_this3.constructor.Event.FOCUSIN; var eventOut=trigger===Trigger.HOVER ? _this3.constructor.Event.MOUSELEAVE:_this3.constructor.Event.FOCUSOUT; $(_this3.element).on(eventIn, _this3.config.selector, function (event){ return _this3._enter(event); }).on(eventOut, _this3.config.selector, function (event){ return _this3._leave(event); }); } $(_this3.element).closest('.modal').on('hide.bs.modal', function (){ return _this3.hide(); }); }); if(this.config.selector){ this.config=$.extend({}, this.config, { trigger: 'manual', selector: '' }); }else{ this._fixTitle(); }}; _proto._fixTitle=function _fixTitle(){ var titleType=typeof this.element.getAttribute('data-original-title'); if(this.element.getAttribute('title')||titleType!=='string'){ this.element.setAttribute('data-original-title', this.element.getAttribute('title')||''); this.element.setAttribute('title', ''); }}; _proto._enter=function _enter(event, context){ var dataKey=this.constructor.DATA_KEY; context=context||$(event.currentTarget).data(dataKey); if(!context){ context=new this.constructor(event.currentTarget, this._getDelegateConfig()); $(event.currentTarget).data(dataKey, context); } if(event){ context._activeTrigger[event.type==='focusin' ? Trigger.FOCUS:Trigger.HOVER]=true; } if($(context.getTipElement()).hasClass(ClassName.SHOW)||context._hoverState===HoverState.SHOW){ context._hoverState=HoverState.SHOW; return; } clearTimeout(context._timeout); context._hoverState=HoverState.SHOW; if(!context.config.delay||!context.config.delay.show){ context.show(); return; } context._timeout=setTimeout(function (){ if(context._hoverState===HoverState.SHOW){ context.show(); }}, context.config.delay.show); }; _proto._leave=function _leave(event, context){ var dataKey=this.constructor.DATA_KEY; context=context||$(event.currentTarget).data(dataKey); if(!context){ context=new this.constructor(event.currentTarget, this._getDelegateConfig()); $(event.currentTarget).data(dataKey, context); } if(event){ context._activeTrigger[event.type==='focusout' ? Trigger.FOCUS:Trigger.HOVER]=false; } if(context._isWithActiveTrigger()){ return; } clearTimeout(context._timeout); context._hoverState=HoverState.OUT; if(!context.config.delay||!context.config.delay.hide){ context.hide(); return; } context._timeout=setTimeout(function (){ if(context._hoverState===HoverState.OUT){ context.hide(); }}, context.config.delay.hide); }; _proto._isWithActiveTrigger=function _isWithActiveTrigger(){ for (var trigger in this._activeTrigger){ if(this._activeTrigger[trigger]){ return true; }} return false; }; _proto._getConfig=function _getConfig(config){ config=$.extend({}, this.constructor.Default, $(this.element).data(), config); if(typeof config.delay==='number'){ config.delay={ show: config.delay, hide: config.delay };} if(typeof config.title==='number'){ config.title=config.title.toString(); } if(typeof config.content==='number'){ config.content=config.content.toString(); } Util.typeCheckConfig(NAME, config, this.constructor.DefaultType); return config; }; _proto._getDelegateConfig=function _getDelegateConfig(){ var config={}; if(this.config){ for (var key in this.config){ if(this.constructor.Default[key]!==this.config[key]){ config[key]=this.config[key]; }} } return config; }; _proto._cleanTipClass=function _cleanTipClass(){ var $tip=$(this.getTipElement()); var tabClass=$tip.attr('class').match(BSCLS_PREFIX_REGEX); if(tabClass!==null&&tabClass.length > 0){ $tip.removeClass(tabClass.join('')); }}; _proto._handlePopperPlacementChange=function _handlePopperPlacementChange(data){ this._cleanTipClass(); this.addAttachmentClass(this._getAttachment(data.placement)); }; _proto._fixTransition=function _fixTransition(){ var tip=this.getTipElement(); var initConfigAnimation=this.config.animation; if(tip.getAttribute('x-placement')!==null){ return; } $(tip).removeClass(ClassName.FADE); this.config.animation=false; this.hide(); this.show(); this.config.animation=initConfigAnimation; }; Tooltip._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var data=$(this).data(DATA_KEY); var _config=typeof config==='object'&&config; if(!data&&/dispose|hide/.test(config)){ return; } if(!data){ data=new Tooltip(this, _config); $(this).data(DATA_KEY, data); } if(typeof config==='string'){ if(typeof data[config]==='undefined'){ throw new Error("No method named \"" + config + "\""); } data[config](); }}); }; createClass(Tooltip, null, [{ key: "VERSION", get: function get(){ return VERSION; }}, { key: "Default", get: function get(){ return Default; }}, { key: "NAME", get: function get(){ return NAME; }}, { key: "DATA_KEY", get: function get(){ return DATA_KEY; }}, { key: "Event", get: function get(){ return Event; }}, { key: "EVENT_KEY", get: function get(){ return EVENT_KEY; }}, { key: "DefaultType", get: function get(){ return DefaultType; }}]); return Tooltip; }(); $.fn[NAME]=Tooltip._jQueryInterface; $.fn[NAME].Constructor=Tooltip; $.fn[NAME].noConflict=function (){ $.fn[NAME]=JQUERY_NO_CONFLICT; return Tooltip._jQueryInterface; }; return Tooltip; }($, Popper); var Popover=function (){ var NAME='popover'; var VERSION='4.0.0-beta.2'; var DATA_KEY='bs.popover'; var EVENT_KEY="." + DATA_KEY; var JQUERY_NO_CONFLICT=$.fn[NAME]; var CLASS_PREFIX='bs-popover'; var BSCLS_PREFIX_REGEX=new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g'); var Default=$.extend({}, Tooltip.Default, { placement: 'right', trigger: 'click', content: '', template: '' }); var DefaultType=$.extend({}, Tooltip.DefaultType, { content: '(string|element|function)' }); var ClassName={ FADE: 'fade', SHOW: 'show' }; var Selector={ TITLE: '.popover-header', CONTENT: '.popover-body' }; var Event={ HIDE: "hide" + EVENT_KEY, HIDDEN: "hidden" + EVENT_KEY, SHOW: "show" + EVENT_KEY, SHOWN: "shown" + EVENT_KEY, INSERTED: "inserted" + EVENT_KEY, CLICK: "click" + EVENT_KEY, FOCUSIN: "focusin" + EVENT_KEY, FOCUSOUT: "focusout" + EVENT_KEY, MOUSEENTER: "mouseenter" + EVENT_KEY, MOUSELEAVE: "mouseleave" + EVENT_KEY }; var Popover = function (_Tooltip){ inheritsLoose(Popover, _Tooltip); function Popover(){ return _Tooltip.apply(this, arguments)||this; } var _proto=Popover.prototype; _proto.isWithContent=function isWithContent(){ return this.getTitle()||this._getContent(); }; _proto.addAttachmentClass=function addAttachmentClass(attachment){ $(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment); }; _proto.getTipElement=function getTipElement(){ this.tip=this.tip||$(this.config.template)[0]; return this.tip; }; _proto.setContent=function setContent(){ var $tip=$(this.getTipElement()); this.setElementContent($tip.find(Selector.TITLE), this.getTitle()); this.setElementContent($tip.find(Selector.CONTENT), this._getContent()); $tip.removeClass(ClassName.FADE + " " + ClassName.SHOW); }; _proto._getContent=function _getContent(){ return this.element.getAttribute('data-content')||(typeof this.config.content==='function' ? this.config.content.call(this.element):this.config.content); }; _proto._cleanTipClass=function _cleanTipClass(){ var $tip=$(this.getTipElement()); var tabClass=$tip.attr('class').match(BSCLS_PREFIX_REGEX); if(tabClass!==null&&tabClass.length > 0){ $tip.removeClass(tabClass.join('')); }}; Popover._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var data=$(this).data(DATA_KEY); var _config=typeof config==='object' ? config:null; if(!data&&/destroy|hide/.test(config)){ return; } if(!data){ data=new Popover(this, _config); $(this).data(DATA_KEY, data); } if(typeof config==='string'){ if(typeof data[config]==='undefined'){ throw new Error("No method named \"" + config + "\""); } data[config](); }}); }; createClass(Popover, null, [{ key: "VERSION", get: function get(){ return VERSION; }}, { key: "Default", get: function get(){ return Default; }}, { key: "NAME", get: function get(){ return NAME; }}, { key: "DATA_KEY", get: function get(){ return DATA_KEY; }}, { key: "Event", get: function get(){ return Event; }}, { key: "EVENT_KEY", get: function get(){ return EVENT_KEY; }}, { key: "DefaultType", get: function get(){ return DefaultType; }}]); return Popover; }(Tooltip); $.fn[NAME]=Popover._jQueryInterface; $.fn[NAME].Constructor=Popover; $.fn[NAME].noConflict=function (){ $.fn[NAME]=JQUERY_NO_CONFLICT; return Popover._jQueryInterface; }; return Popover; }($); var ScrollSpy=function (){ var NAME='scrollspy'; var VERSION='4.0.0-beta.2'; var DATA_KEY='bs.scrollspy'; var EVENT_KEY="." + DATA_KEY; var DATA_API_KEY='.data-api'; var JQUERY_NO_CONFLICT=$.fn[NAME]; var Default={ offset: 10, method: 'auto', target: '' }; var DefaultType={ offset: 'number', method: 'string', target: '(string|element)' }; var Event={ ACTIVATE: "activate" + EVENT_KEY, SCROLL: "scroll" + EVENT_KEY, LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY }; var ClassName={ DROPDOWN_ITEM: 'dropdown-item', DROPDOWN_MENU: 'dropdown-menu', ACTIVE: 'active' }; var Selector={ DATA_SPY: '[data-spy="scroll"]', ACTIVE: '.active', NAV_LIST_GROUP: '.nav, .list-group', NAV_LINKS: '.nav-link', NAV_ITEMS: '.nav-item', LIST_ITEMS: '.list-group-item', DROPDOWN: '.dropdown', DROPDOWN_ITEMS: '.dropdown-item', DROPDOWN_TOGGLE: '.dropdown-toggle' }; var OffsetMethod={ OFFSET: 'offset', POSITION: 'position' }; var ScrollSpy = function (){ function ScrollSpy(element, config){ var _this=this; this._element=element; this._scrollElement=element.tagName==='BODY' ? window:element; this._config=this._getConfig(config); this._selector=this._config.target + " " + Selector.NAV_LINKS + "," + (this._config.target + " " + Selector.LIST_ITEMS + ",") + (this._config.target + " " + Selector.DROPDOWN_ITEMS); this._offsets=[]; this._targets=[]; this._activeTarget=null; this._scrollHeight=0; $(this._scrollElement).on(Event.SCROLL, function (event){ return _this._process(event); }); this.refresh(); this._process(); } var _proto=ScrollSpy.prototype; _proto.refresh=function refresh(){ var _this2=this; var autoMethod=this._scrollElement!==this._scrollElement.window ? OffsetMethod.POSITION:OffsetMethod.OFFSET; var offsetMethod=this._config.method==='auto' ? autoMethod:this._config.method; var offsetBase=offsetMethod===OffsetMethod.POSITION ? this._getScrollTop():0; this._offsets=[]; this._targets=[]; this._scrollHeight=this._getScrollHeight(); var targets=$.makeArray($(this._selector)); targets.map(function (element){ var target; var targetSelector=Util.getSelectorFromElement(element); if(targetSelector){ target=$(targetSelector)[0]; } if(target){ var targetBCR=target.getBoundingClientRect(); if(targetBCR.width||targetBCR.height){ return [$(target)[offsetMethod]().top + offsetBase, targetSelector]; }} return null; }).filter(function (item){ return item; }).sort(function (a, b){ return a[0] - b[0]; }).forEach(function (item){ _this2._offsets.push(item[0]); _this2._targets.push(item[1]); }); }; _proto.dispose=function dispose(){ $.removeData(this._element, DATA_KEY); $(this._scrollElement).off(EVENT_KEY); this._element=null; this._scrollElement=null; this._config=null; this._selector=null; this._offsets=null; this._targets=null; this._activeTarget=null; this._scrollHeight=null; }; _proto._getConfig=function _getConfig(config){ config=$.extend({}, Default, config); if(typeof config.target!=='string'){ var id=$(config.target).attr('id'); if(!id){ id=Util.getUID(NAME); $(config.target).attr('id', id); } config.target="#" + id; } Util.typeCheckConfig(NAME, config, DefaultType); return config; }; _proto._getScrollTop=function _getScrollTop(){ return this._scrollElement===window ? this._scrollElement.pageYOffset:this._scrollElement.scrollTop; }; _proto._getScrollHeight=function _getScrollHeight(){ return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight, document.documentElement.scrollHeight); }; _proto._getOffsetHeight=function _getOffsetHeight(){ return this._scrollElement===window ? window.innerHeight:this._scrollElement.getBoundingClientRect().height; }; _proto._process=function _process(){ var scrollTop=this._getScrollTop() + this._config.offset; var scrollHeight=this._getScrollHeight(); var maxScroll=this._config.offset + scrollHeight - this._getOffsetHeight(); if(this._scrollHeight!==scrollHeight){ this.refresh(); } if(scrollTop >=maxScroll){ var target=this._targets[this._targets.length - 1]; if(this._activeTarget!==target){ this._activate(target); } return; } if(this._activeTarget&&scrollTop < this._offsets[0]&&this._offsets[0] > 0){ this._activeTarget=null; this._clear(); return; } for (var i=this._offsets.length; i--;){ var isActiveTarget=this._activeTarget!==this._targets[i]&&scrollTop >=this._offsets[i]&&(typeof this._offsets[i + 1]==='undefined'||scrollTop < this._offsets[i + 1]); if(isActiveTarget){ this._activate(this._targets[i]); }} }; _proto._activate=function _activate(target){ this._activeTarget=target; this._clear(); var queries=this._selector.split(','); queries=queries.map(function (selector){ return selector + "[data-target=\"" + target + "\"]," + (selector + "[href=\"" + target + "\"]"); }); var $link=$(queries.join(',')); if($link.hasClass(ClassName.DROPDOWN_ITEM)){ $link.closest(Selector.DROPDOWN).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE); $link.addClass(ClassName.ACTIVE); }else{ $link.addClass(ClassName.ACTIVE); $link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_LINKS + ", " + Selector.LIST_ITEMS).addClass(ClassName.ACTIVE); $link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_ITEMS).children(Selector.NAV_LINKS).addClass(ClassName.ACTIVE); } $(this._scrollElement).trigger(Event.ACTIVATE, { relatedTarget: target }); }; _proto._clear=function _clear(){ $(this._selector).filter(Selector.ACTIVE).removeClass(ClassName.ACTIVE); }; ScrollSpy._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var data=$(this).data(DATA_KEY); var _config=typeof config==='object'&&config; if(!data){ data=new ScrollSpy(this, _config); $(this).data(DATA_KEY, data); } if(typeof config==='string'){ if(typeof data[config]==='undefined'){ throw new Error("No method named \"" + config + "\""); } data[config](); }}); }; createClass(ScrollSpy, null, [{ key: "VERSION", get: function get(){ return VERSION; }}, { key: "Default", get: function get(){ return Default; }}]); return ScrollSpy; }(); $(window).on(Event.LOAD_DATA_API, function (){ var scrollSpys=$.makeArray($(Selector.DATA_SPY)); for (var i=scrollSpys.length; i--;){ var $spy=$(scrollSpys[i]); ScrollSpy._jQueryInterface.call($spy, $spy.data()); }}); $.fn[NAME]=ScrollSpy._jQueryInterface; $.fn[NAME].Constructor=ScrollSpy; $.fn[NAME].noConflict=function (){ $.fn[NAME]=JQUERY_NO_CONFLICT; return ScrollSpy._jQueryInterface; }; return ScrollSpy; }($); var Tab=function (){ var NAME='tab'; var VERSION='4.0.0-beta.2'; var DATA_KEY='bs.tab'; var EVENT_KEY="." + DATA_KEY; var DATA_API_KEY='.data-api'; var JQUERY_NO_CONFLICT=$.fn[NAME]; var TRANSITION_DURATION=150; var Event={ HIDE: "hide" + EVENT_KEY, HIDDEN: "hidden" + EVENT_KEY, SHOW: "show" + EVENT_KEY, SHOWN: "shown" + EVENT_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY }; var ClassName={ DROPDOWN_MENU: 'dropdown-menu', ACTIVE: 'active', DISABLED: 'disabled', FADE: 'fade', SHOW: 'show' }; var Selector={ DROPDOWN: '.dropdown', NAV_LIST_GROUP: '.nav, .list-group', ACTIVE: '.active', ACTIVE_UL: '> li > .active', DATA_TOGGLE: '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]', DROPDOWN_TOGGLE: '.dropdown-toggle', DROPDOWN_ACTIVE_CHILD: '> .dropdown-menu .active' }; var Tab = function (){ function Tab(element){ this._element=element; } var _proto=Tab.prototype; _proto.show=function show(){ var _this=this; if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&$(this._element).hasClass(ClassName.ACTIVE)||$(this._element).hasClass(ClassName.DISABLED)){ return; } var target; var previous; var listElement=$(this._element).closest(Selector.NAV_LIST_GROUP)[0]; var selector=Util.getSelectorFromElement(this._element); if(listElement){ var itemSelector=listElement.nodeName==='UL' ? Selector.ACTIVE_UL:Selector.ACTIVE; previous=$.makeArray($(listElement).find(itemSelector)); previous=previous[previous.length - 1]; } var hideEvent=$.Event(Event.HIDE, { relatedTarget: this._element }); var showEvent=$.Event(Event.SHOW, { relatedTarget: previous }); if(previous){ $(previous).trigger(hideEvent); } $(this._element).trigger(showEvent); if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented()){ return; } if(selector){ target=$(selector)[0]; } this._activate(this._element, listElement); var complete=function complete(){ var hiddenEvent=$.Event(Event.HIDDEN, { relatedTarget: _this._element }); var shownEvent=$.Event(Event.SHOWN, { relatedTarget: previous }); $(previous).trigger(hiddenEvent); $(_this._element).trigger(shownEvent); }; if(target){ this._activate(target, target.parentNode, complete); }else{ complete(); }}; _proto.dispose=function dispose(){ $.removeData(this._element, DATA_KEY); this._element=null; }; _proto._activate=function _activate(element, container, callback){ var _this2=this; var activeElements; if(container.nodeName==='UL'){ activeElements=$(container).find(Selector.ACTIVE_UL); }else{ activeElements=$(container).children(Selector.ACTIVE); } var active=activeElements[0]; var isTransitioning=callback&&Util.supportsTransitionEnd()&&active&&$(active).hasClass(ClassName.FADE); var complete=function complete(){ return _this2._transitionComplete(element, active, isTransitioning, callback); }; if(active&&isTransitioning){ $(active).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); }else{ complete(); } if(active){ $(active).removeClass(ClassName.SHOW); }}; _proto._transitionComplete=function _transitionComplete(element, active, isTransitioning, callback){ if(active){ $(active).removeClass(ClassName.ACTIVE); var dropdownChild=$(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0]; if(dropdownChild){ $(dropdownChild).removeClass(ClassName.ACTIVE); } if(active.getAttribute('role')==='tab'){ active.setAttribute('aria-selected', false); }} $(element).addClass(ClassName.ACTIVE); if(element.getAttribute('role')==='tab'){ element.setAttribute('aria-selected', true); } if(isTransitioning){ Util.reflow(element); $(element).addClass(ClassName.SHOW); }else{ $(element).removeClass(ClassName.FADE); } if(element.parentNode&&$(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)){ var dropdownElement=$(element).closest(Selector.DROPDOWN)[0]; if(dropdownElement){ $(dropdownElement).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE); } element.setAttribute('aria-expanded', true); } if(callback){ callback(); }}; Tab._jQueryInterface=function _jQueryInterface(config){ return this.each(function (){ var $this=$(this); var data=$this.data(DATA_KEY); if(!data){ data=new Tab(this); $this.data(DATA_KEY, data); } if(typeof config==='string'){ if(typeof data[config]==='undefined'){ throw new Error("No method named \"" + config + "\""); } data[config](); }}); }; createClass(Tab, null, [{ key: "VERSION", get: function get(){ return VERSION; }}]); return Tab; }(); $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event){ event.preventDefault(); Tab._jQueryInterface.call($(this), 'show'); }); $.fn[NAME]=Tab._jQueryInterface; $.fn[NAME].Constructor=Tab; $.fn[NAME].noConflict=function (){ $.fn[NAME]=JQUERY_NO_CONFLICT; return Tab._jQueryInterface; }; return Tab; }($); (function (){ if(typeof $==='undefined'){ throw new Error('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.'); } var version=$.fn.jquery.split(' ')[0].split('.'); var minMajor=1; var ltMajor=2; var minMinor=9; var minPatch=1; var maxMajor=4; if(version[0] < ltMajor&&version[1] < minMinor||version[0]===minMajor&&version[1]===minMinor&&version[2] < minPatch||version[0] >=maxMajor){ throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0'); }})($); exports.Util=Util; exports.Alert=Alert; exports.Button=Button; exports.Carousel=Carousel; exports.Collapse=Collapse; exports.Dropdown=Dropdown; exports.Modal=Modal; exports.Popover=Popover; exports.Scrollspy=ScrollSpy; exports.Tab=Tab; exports.Tooltip=Tooltip; return exports; }({},$,Popper)); !function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g--;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var b,c,e;b=this.$element.find("img"),c=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,e=this.$element.children(c).width(),b.length&&e<=0&&this.preloadAutoWidthImages(b)}this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('
'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),this.settings.responsive!==!1&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var d=-1,e=30,f=this.width(),g=this.coordinates();return this.settings.freeDrag||a.each(g,a.proxy(function(a,h){return"left"===c&&b>h-e&&bh-f-e&&b",g[a+1]||h-f)&&(d="left"===c?a+1:a),d===-1},this)),this.settings.loop||(this.op(b,">",g[this.minimum()])?d=b=this.minimum():this.op(b,"<",g[this.maximum()])&&(d=b=this.maximum())),d},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){a=this.normalize(a),a!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){for(b=this._items.length,c=this._items[--b].width(),d=this.$element.width();b--&&(c+=this._items[b].width()+this.settings.margin,!(c>d)););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2===0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=f*-1*g),a=c+e,d=((a-h)%g+g)%g+h,d!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.$element.is(":visible")&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){if(a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;return this.options.responsiveBaseElement!==b?d=a(this.options.responsiveBaseElement).width():b.innerWidth?d=b.innerWidth:c.documentElement&&c.documentElement.clientWidth?d=c.documentElement.clientWidth:console.warn("Can not detect viewport width."),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){a=this.normalize(a,!0),a!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),this.settings.responsive!==!1&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a":return d?ac;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&a.namespace.indexOf("owl")!==-1?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type))for(var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&e*-1||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);f++-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"==a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.$stage.children().toArray().slice(b,c),e=[],f=0;a.each(d,function(b,c){e.push(a(c).height())}),f=Math.max.apply(null,e),this._core.$stage.parent().height(f).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else if(d[3].indexOf("vimeo")>-1)c="vimeo";else{if(!(d[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?'style="width:'+c.width+"px;height:"+c.height+'px;"':"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(a){e='
',d=k.lazyLoad?'
':'
',b.after(d),b.after(e)};if(b.wrap('
"),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),"youtube"===f.type?c='':"vimeo"===f.type?c='':"vzaar"===f.type&&(c=''),a('
'+c+"
").insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)}, a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype.play=function(a,b){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},e.prototype._getNextTimeout=function(d,e){return this._timeout&&b.clearTimeout(this._timeout),b.setTimeout(a.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||c.hidden||this._core.next(e||this._core.settings.autoplaySpeed)},this),d||this._core.settings.autoplayTimeout)},e.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},e.prototype.stop=function(){this._core.is("rotating")&&(b.clearTimeout(this._timeout),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('
'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"
")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("
").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a("
").addClass(c.dotClass).append(a("")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("
").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"URLHash"===this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document); (function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetAnimation=function(a){var b;return a.type.toLowerCase().indexOf("animationend")>=0?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getPropertyCSSValue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getPropertyCSSValue("-"+i+"-"+b);return g},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this); !function(e){function n(n,s,t){if(t)return"object"!=typeof n&&(n={}),n;n=e.extend(!0,{},e[a].defaults,n);for(var i=["position","zposition","modal","moveBackground"],o=0,l=i.length;l>o;o++)"undefined"!=typeof n[i[o]]&&(e[a].deprecated('The option "'+i[o]+'"',"offCanvas."+i[o]),n.offCanvas=n.offCanvas||{},n.offCanvas[i[o]]=n[i[o]]);return n}function s(n){n=e.extend(!0,{},e[a].configuration,n);for(var s=["panel","list","selected","label","spacer"],t=0,i=s.length;i>t;t++)"undefined"!=typeof n[s[t]+"Class"]&&(e[a].deprecated('The configuration option "'+s[t]+'Class"',"classNames."+s[t]),n.classNames[s[t]]=n[s[t]+"Class"]);if("undefined"!=typeof n.counterClass&&(e[a].deprecated('The configuration option "counterClass"',"classNames.counters.counter"),n.classNames.counters=n.classNames.counters||{},n.classNames.counters.counter=n.counterClass),"undefined"!=typeof n.collapsedClass&&(e[a].deprecated('The configuration option "collapsedClass"',"classNames.labels.collapsed"),n.classNames.labels=n.classNames.labels||{},n.classNames.labels.collapsed=n.collapsedClass),"undefined"!=typeof n.header)for(var s=["panelHeader","panelNext","panelPrev"],t=0,i=s.length;i>t;t++)"undefined"!=typeof n.header[s[t]+"Class"]&&(e[a].deprecated('The configuration option "header.'+s[t]+'Class"',"classNames.header."+s[t]),n.classNames.header=n.classNames.header||{},n.classNames.header[s[t]]=n.header[s[t]+"Class"]);for(var s=["pageNodetype","pageSelector","menuWrapperSelector","menuInjectMethod"],t=0,i=s.length;i>t;t++)"undefined"!=typeof n[s[t]]&&(e[a].deprecated('The configuration option "'+s[t]+'"',"offCanvas."+s[t]),n.offCanvas=n.offCanvas||{},n.offCanvas[s[t]]=n[s[t]]);return n}function t(){r=!0,c.$wndw=e(window),c.$html=e("html"),c.$body=e("body"),e.each([o,l,d],function(e,n){n.add=function(e){e=e.split(" ");for(var s in e)n[e[s]]=n.mm(e[s])}}),o.mm=function(e){return"mm-"+e},o.add("wrapper menu inline panel nopanel list nolist subtitle selected label spacer current highest hidden opened subopened subopen fullsubopen subclose"),o.umm=function(e){return"mm-"==e.slice(0,3)&&(e=e.slice(3)),e},l.mm=function(e){return"mm-"+e},l.add("parent"),d.mm=function(e){return e+".mm"},d.add("toggle open close setSelected transitionend webkitTransitionEnd mousedown mouseup touchstart touchmove touchend scroll resize click keydown keyup"),e[a]._c=o,e[a]._d=l,e[a]._e=d,e[a].glbl=c}var a="mmenu",i="4.5.5";if(!e[a]){var o={},l={},d={},r=!1,c={$wndw:null,$html:null,$body:null};e[a]=function(e,s,t){return this.$menu=e,this.opts=s,this.conf=t,this.vars={},this.opts=n(this.opts,this.conf,this.$menu),this._initMenu(),this._init(this.$menu.children(this.conf.panelNodetype)),this},e[a].version=i,e[a].addons=[],e[a].uniqueId=0,e[a].defaults={classes:"",slidingSubmenus:!0,onClick:{setSelected:!0}},e[a].configuration={panelNodetype:"ul, ol, div",transitionDuration:400,openingInterval:25,classNames:{panel:"Panel",selected:"Selected",label:"Label",spacer:"Spacer"}},e[a].prototype={_init:function(n){n=n.not("."+o.nopanel),n=this._initPanels(n),n=this._initLinks(n),n=this._bindCustomEvents(n);for(var s=0;s li");this.__refactorClass(t,this.conf.classNames.selected,"selected"),this.__refactorClass(t,this.conf.classNames.label,"label"),this.__refactorClass(t,this.conf.classNames.spacer,"spacer"),t.off(d.setSelected).on(d.setSelected,function(n,s){n.stopPropagation(),t.removeClass(o.selected),"boolean"!=typeof s&&(s=!0),s&&e(this).addClass(o.selected)}),this.__refactorClass(this.__findAddBack(n,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel"),n.add(this.__findAddBack(n,"."+o.list).children().children().filter(this.conf.panelNodetype).not("."+o.nopanel)).addClass(o.panel);var a=this.__findAddBack(n,"."+o.panel),i=e("."+o.panel,this.$menu);a.each(function(){var n=e(this),t=n.attr("id")||s.__getUniqueId();n.attr("id",t)}),a.each(function(){var n=e(this),t=n.is("ul, ol")?n:n.find("ul ,ol").first(),a=n.parent(),i=a.find("> a, > span"),d=a.closest("."+o.panel);if(a.parent().is("."+o.list)){n.data(l.parent,a);var r=e('').insertBefore(i);i.is("a")||r.addClass(o.fullsubopen),s.opts.slidingSubmenus&&t.prepend('
  • '+i.text()+"
  • ")}});var r=this.opts.slidingSubmenus?d.open:d.toggle;if(i.each(function(){var n=e(this),s=n.attr("id");e('a[href="#'+s+'"]',i).off(d.click).on(d.click,function(e){e.preventDefault(),n.trigger(r)})}),this.opts.slidingSubmenus){var c=this.__findAddBack(n,"."+o.list).find("> li."+o.selected);c.parents("li").removeClass(o.selected).end().add(c.parents("li")).each(function(){var n=e(this),s=n.find("> ."+o.panel);s.length&&(n.parents("."+o.panel).addClass(o.subopened),s.addClass(o.opened))}).closest("."+o.panel).addClass(o.opened).parents("."+o.panel).addClass(o.subopened)}else{var c=e("li."+o.selected,i);c.parents("li").removeClass(o.selected).end().add(c.parents("li")).addClass(o.opened)}var u=i.filter("."+o.opened);return u.length||(u=a.first()),u.addClass(o.opened).last().addClass(o.current),this.opts.slidingSubmenus&&a.not(u.last()).addClass(o.hidden).end().appendTo(this.$menu),a},_initLinks:function(n){var s=this;return this.__findAddBack(n,"."+o.list).find("> li > a").not("."+o.subopen).not("."+o.subclose).not('[rel="external"]').not('[target="_blank"]').off(d.click).on(d.click,function(n){var t=e(this),a=t.attr("href")||"";s.__valueOrFn(s.opts.onClick.setSelected,t)&&t.parent().trigger(d.setSelected);var i=s.__valueOrFn(s.opts.onClick.preventDefault,t,"#"==a.slice(0,1));i&&n.preventDefault(),s.__valueOrFn(s.opts.onClick.blockUI,t,!i)&&c.$html.addClass(o.blocking),s.__valueOrFn(s.opts.onClick.close,t,i)&&s.$menu.triggerHandler(d.close)}),n},_bindCustomEvents:function(n){var s=this;return n.off(d.toggle+" "+d.open+" "+d.close).on(d.toggle+" "+d.open+" "+d.close,function(e){e.stopPropagation()}),this.opts.slidingSubmenus?n.on(d.open,function(){return s._openSubmenuHorizontal(e(this))}):n.on(d.toggle,function(){var n=e(this);return n.triggerHandler(n.parent().hasClass(o.opened)?d.close:d.open)}).on(d.open,function(){return e(this).parent().addClass(o.opened),"open"}).on(d.close,function(){return e(this).parent().removeClass(o.opened),"close"}),n},_openSubmenuHorizontal:function(n){if(n.hasClass(o.current))return!1;var s=e("."+o.panel,this.$menu),t=s.filter("."+o.current);return s.removeClass(o.highest).removeClass(o.current).not(n).not(t).addClass(o.hidden),n.hasClass(o.opened)?t.addClass(o.highest).removeClass(o.opened).removeClass(o.subopened):(n.addClass(o.highest),t.addClass(o.subopened)),n.removeClass(o.hidden).addClass(o.current),setTimeout(function(){n.removeClass(o.subopened).addClass(o.opened)},this.conf.openingInterval),"open"},_update:function(e){if(this.updates||(this.updates=[]),"function"==typeof e)this.updates.push(e);else for(var n=0,s=this.updates.length;s>n;n++)this.updates[n].call(this,e)},__valueOrFn:function(e,n,s){return"function"==typeof e?e.call(n[0]):"undefined"==typeof e&&"undefined"!=typeof s?s:e},__refactorClass:function(e,n,s){e.filter("."+n).removeClass(n).addClass(o[s])},__findAddBack:function(e,n){return e.find(n).add(e.filter(n))},__transitionend:function(e,n,s){var t=!1,a=function(){t||n.call(e[0]),t=!0};e.one(d.transitionend,a),e.one(d.webkitTransitionEnd,a),setTimeout(a,1.1*s)},__getUniqueId:function(){return o.mm(e[a].uniqueId++)}},e.fn[a]=function(i,o){return r||t(),i=n(i,o),o=s(o),this.each(function(){var n=e(this);n.data(a)||n.data(a,new e[a](n,i,o))})},e[a].support={touch:"ontouchstart"in window.document},e[a].debug=function(){},e[a].deprecated=function(e,n){"undefined"!=typeof console&&"undefined"!=typeof console.warn&&console.warn("MMENU: "+e+" is deprecated, use "+n+" instead.")}}}(jQuery); !function(e){function o(o){return("top"==o.position||"bottom"==o.position)&&("back"==o.zposition||"next"==o.zposition)&&(e[s].deprecated('Using position "'+o.position+'" in combination with zposition "'+o.zposition+'"','zposition "front"'),o.zposition="front"),o}function t(e){return"string"!=typeof e.pageSelector&&(e.pageSelector="> "+e.pageNodetype),e}function n(){c=!0,p=e[s]._c,a=e[s]._d,r=e[s]._e,p.add("offcanvas modal background opening blocker page"),a.add("style"),r.add("opening opened closing closed setPage"),l=e[s].glbl,l.$allMenus=(l.$allMenus||e()).add(this.$menu),l.$wndw.on(r.keydown,function(e){return l.$html.hasClass(p.opened)&&9==e.keyCode?(e.preventDefault(),!1):void 0});var o=0;l.$wndw.on(r.resize,function(e,t){if(t||l.$html.hasClass(p.opened)){var n=l.$wndw.height();(t||n!=o)&&(o=n,l.$page.css("minHeight",n))}})}var s="mmenu",i="offCanvas";e[s].prototype["_init_"+i]=function(){if(this.opts[i]&&!this.vars[i+"_added"]){this.vars[i+"_added"]=!0,c||n(),this.opts[i]=o(this.opts[i]),this.conf[i]=t(this.conf[i]);var e=this.opts[i],s=this.conf[i],a=[p.offcanvas];"boolean"!=typeof this.vars.opened&&(this.vars.opened=!1),"left"!=e.position&&a.push(p.mm(e.position)),"back"!=e.zposition&&a.push(p.mm(e.zposition)),this.$menu.addClass(a.join(" ")).parent().removeClass(p.wrapper),this[i+"_initPage"](l.$page),this[i+"_initBlocker"](),this[i+"_initOpenClose"](),this[i+"_bindCustomEvents"](),this.$menu[s.menuInjectMethod+"To"](s.menuWrapperSelector)}},e[s].addons.push(i),e[s].defaults[i]={position:"left",zposition:"back",modal:!1,moveBackground:!0},e[s].configuration[i]={pageNodetype:"div",pageSelector:null,menuWrapperSelector:"body",menuInjectMethod:"prepend"},e[s].prototype.open=function(){if(this.vars.opened)return!1;var e=this;return this._openSetup(),setTimeout(function(){e._openFinish()},this.conf.openingInterval),"open"},e[s].prototype._openSetup=function(){l.$allMenus.not(this.$menu).trigger(r.close),l.$page.data(a.style,l.$page.attr("style")||""),l.$wndw.trigger(r.resize,[!0]);var e=[p.opened];this.opts[i].modal&&e.push(p.modal),this.opts[i].moveBackground&&e.push(p.background),"left"!=this.opts[i].position&&e.push(p.mm(this.opts[i].position)),"back"!=this.opts[i].zposition&&e.push(p.mm(this.opts[i].zposition)),this.opts.classes&&e.push(this.opts.classes),l.$html.addClass(e.join(" ")),this.vars.opened=!0,this.$menu.addClass(p.current+" "+p.opened)},e[s].prototype._openFinish=function(){var e=this;this.__transitionend(l.$page,function(){e.$menu.trigger(r.opened)},this.conf.transitionDuration),l.$html.addClass(p.opening),this.$menu.trigger(r.opening)},e[s].prototype.close=function(){if(!this.vars.opened)return!1;var e=this;return this.__transitionend(l.$page,function(){e.$menu.removeClass(p.current).removeClass(p.opened),l.$html.removeClass(p.opened).removeClass(p.modal).removeClass(p.background).removeClass(p.mm(e.opts[i].position)).removeClass(p.mm(e.opts[i].zposition)),e.opts.classes&&l.$html.removeClass(e.opts.classes),l.$page.attr("style",l.$page.data(a.style)),e.vars.opened=!1,e.$menu.trigger(r.closed)},this.conf.transitionDuration),l.$html.removeClass(p.opening),this.$menu.trigger(r.closing),"close"},e[s].prototype[i+"_initBlocker"]=function(){var o=this;l.$blck||(l.$blck=e('
    ').appendTo(l.$body)),l.$blck.off(r.touchstart).on(r.touchstart,function(e){e.preventDefault(),e.stopPropagation(),l.$blck.trigger(r.mousedown)}).on(r.mousedown,function(e){e.preventDefault(),l.$html.hasClass(p.modal)||o.close()})},e[s].prototype[i+"_initPage"]=function(o){o||(o=e(this.conf[i].pageSelector,l.$body),o.length>1&&(e[s].debug("Multiple nodes found for the page-node, all nodes are wrapped in one <"+this.conf[i].pageNodetype+">."),o=o.wrapAll("<"+this.conf[i].pageNodetype+" />").parent())),o.addClass(p.page),l.$page=o},e[s].prototype[i+"_initOpenClose"]=function(){var o=this,t=this.$menu.attr("id");t&&t.length&&(this.conf.clone&&(t=p.umm(t)),e('a[href="#'+t+'"]').off(r.click).on(r.click,function(e){e.preventDefault(),o.open()}));var t=l.$page.attr("id");t&&t.length&&e('a[href="#'+t+'"]').on(r.click,function(e){e.preventDefault(),o.close()})},e[s].prototype[i+"_bindCustomEvents"]=function(){var e=this,o=r.open+" "+r.opening+" "+r.opened+" "+r.close+" "+r.closing+" "+r.closed+" "+r.setPage;this.$menu.off(o).on(o,function(e){e.stopPropagation()}),this.$menu.on(r.open,function(){e.open()}).on(r.close,function(){e.close()}).on(r.setPage,function(o,t){e[i+"_initPage"](t),e[i+"_initOpenClose"]()})};var p,a,r,l,c=!1}(jQuery); !function(t){function n(t){return t}function a(t){return t}function i(){d=!0,o=t[r]._c,e=t[r]._d,u=t[r]._e,o.add("buttonbar"),c=t[r].glbl}var r="mmenu",s="buttonbars";t[r].prototype["_init_"+s]=function(r){d||i();var e=this.vars[s+"_added"];this.vars[s+"_added"]=!0,e||(this.opts[s]=n(this.opts[s]),this.conf[s]=a(this.conf[s])),this.opts[s],this.conf[s],this.__refactorClass(t("div",r),this.conf.classNames[s].buttonbar,"buttonbar"),t("div."+o.buttonbar,r).each(function(){var n=t(this),a=n.children().not("input"),i=n.children().filter("input");n.addClass(o.buttonbar+"-"+a.length),i.each(function(){var n=t(this),i=a.filter('label[for="'+n.attr("id")+'"]');i.length&&n.insertBefore(i)})})},t[r].addons.push(s),t[r].defaults[s]={},t[r].configuration.classNames[s]={buttonbar:"Buttonbar"};var o,e,u,c,d=!1}(jQuery); !function(t){function e(e){return"boolean"==typeof e&&(e={add:e,update:e}),"object"!=typeof e&&(e={}),e=t.extend(!0,{},t[o].defaults[s],e)}function n(t){return t}function a(){i=!0,d=t[o]._c,r=t[o]._d,u=t[o]._e,d.add("counter search noresultsmsg"),r.add("updatecounter"),c=t[o].glbl}var o="mmenu",s="counters";t[o].prototype["_init_"+s]=function(o){i||a();var u=this.vars[s+"_added"];this.vars[s+"_added"]=!0,u||(this.opts[s]=e(this.opts[s]),this.conf[s]=n(this.conf[s]));var c=this,h=this.opts[s];this.conf[s],this.__refactorClass(t("em",o),this.conf.classNames[s].counter,"counter"),h.add&&o.each(function(){var e=t(this).data(r.parent);e&&(e.find("> em."+d.counter).length||e.prepend(t('')))}),h.update&&o.each(function(){var e=t(this),n=e.data(r.parent);if(n){var a=n.find("> em."+d.counter);a.length&&(e.is("."+d.list)||(e=e.find("> ."+d.list)),e.length&&!e.data(r.updatecounter)&&(e.data(r.updatecounter,!0),c._update(function(){var t=e.children().not("."+d.label).not("."+d.subtitle).not("."+d.hidden).not("."+d.search).not("."+d.noresultsmsg);a.html(t.length)})))}})},t[o].addons.push(s),t[o].defaults[s]={add:!1,update:!1},t[o].configuration.classNames[s]={counter:"Counter"};var d,r,u,c,i=!1}(jQuery); !function(e){function t(e,t,n){return t>e&&(e=t),e>n&&(e=n),e}function n(t){return"boolean"==typeof t&&(t={open:t}),"object"!=typeof t&&(t={}),t=e.extend(!0,{},e[s].defaults[i],t)}function o(e){return e}function a(){c=!0,r=e[s]._c,p=e[s]._d,f=e[s]._e,r.add("dragging"),d=e[s].glbl}var s="mmenu",i="dragOpen";e[s].prototype["_init_"+i]=function(){if("function"==typeof Hammer&&this.opts.offCanvas&&!this.vars[i+"_added"]){this.vars[i+"_added"]=!0,c||a(),this.opts[i]=n(this.opts[i]),this.conf[i]=o(this.conf[i]);var p=this,h=this.opts[i],m=this.conf[i];if(h.open){if(Hammer.VERSION<2)return e[s].deprecated("Older version of the Hammer library","version 2 or newer"),!1;var u,g,l,v,_={},w=0,b=!1,y=!1,$=0,x=0;switch(this.opts.offCanvas.position){case"left":case"right":_.events="panleft panright",_.typeLower="x",_.typeUpper="X",y="width";break;case"top":case"bottom":_.events="panup pandown",_.typeLower="y",_.typeUpper="Y",y="height"}switch(this.opts.offCanvas.position){case"left":case"top":_.negative=!1;break;case"right":case"bottom":_.negative=!0}switch(this.opts.offCanvas.position){case"left":_.open_dir="right",_.close_dir="left";break;case"right":_.open_dir="left",_.close_dir="right";break;case"top":_.open_dir="down",_.close_dir="up";break;case"bottom":_.open_dir="up",_.close_dir="down"}var C=this.__valueOrFn(h.pageNode,this.$menu,d.$page);"string"==typeof C&&(C=e(C));var k=d.$page;switch(this.opts.offCanvas.zposition){case"front":k=this.$menu;break;case"next":k=k.add(this.$menu)}var S=new Hammer(C[0]);S.on("panstart",function(e){switch(v=e.center[_.typeLower],p.opts.offCanvas.position){case"right":case"bottom":v>=d.$wndw[y]()-h.maxStartPos&&(w=1);break;default:v<=h.maxStartPos&&(w=1)}b=_.open_dir}).on(_.events+" panend",function(e){w>0&&e.preventDefault()}).on(_.events,function(e){if(u=e["delta"+_.typeUpper],_.negative&&(u=-u),u!=$&&(b=u>=$?_.open_dir:_.close_dir),$=u,$>h.threshold&&1==w){if(d.$html.hasClass(r.opened))return;w=2,p._openSetup(),p.$menu.trigger(f.opening),d.$html.addClass(r.dragging),x=t(d.$wndw[y]()*m[y].perc,m[y].min,m[y].max)}2==w&&(g=t($,10,x)-("front"==p.opts.offCanvas.zposition?x:0),_.negative&&(g=-g),l="translate"+_.typeUpper+"("+g+"px)",k.css({"-webkit-transform":"-webkit-"+l,transform:l}))}).on("panend",function(){2==w&&(d.$html.removeClass(r.dragging),k.css("transform",""),p[b==_.open_dir?"_openFinish":"close"]()),w=0})}}},e[s].addons.push(i),e[s].defaults[i]={open:!1,maxStartPos:100,threshold:50},e[s].configuration[i]={width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}};var r,p,f,d,c=!1}(jQuery); !function(t){function s(t){return t}function o(t){return t}function n(){c=!0,e=t[i]._c,f=t[i]._d,r=t[i]._e,e.add("fixed-top fixed-bottom"),d=t[i].glbl}var i="mmenu",a="fixedElements";t[i].prototype["_init_"+a]=function(){if(this.opts.offCanvas){c||n();var i=this.vars[a+"_added"];if(this.vars[a+"_added"]=!0,i||(this.opts[a]=s(this.opts[a]),this.conf[a]=o(this.conf[a])),this.opts[a],this.conf[a],this.__refactorClass(t("div, span, a",d.$page),this.conf.classNames[a].fixedTop,"fixed-top"),this.__refactorClass(t("div, span, a",d.$page),this.conf.classNames[a].fixedBottom,"fixed-bottom"),!i){var f,p;this.$menu.on(r.opening,function(){var s=t(window).scrollTop(),o=d.$page.height()-s-d.$wndw.height();f=t("."+e["fixed-top"]),p=t("."+e["fixed-bottom"]),f.css({"-webkit-transform":"translateY("+s+"px)",transform:"translateY("+s+"px)"}),p.css({"-webkit-transform":"translateY(-"+o+"px)",transform:"translateY(-"+o+"px)"})}).on(r.closed,function(){f.add(p).css({"-webkit-transform":"none",transform:"none"})})}}},t[i].addons.push(a),t[i].defaults[a]={},t[i].configuration.classNames[a]={fixedTop:"FixedTop",fixedBottom:"FixedBottom"};var e,f,r,d,c=!1}(jQuery); !function(t){function o(o){return"boolean"==typeof o&&(o={add:o,update:o}),"object"!=typeof o&&(o={}),o=t.extend(!0,{},t[a].defaults[s],o)}function n(t){return t}function e(){h=!0,i=t[a]._c,d=t[a]._d,r=t[a]._e,i.add("footer hasfooter"),f=t[a].glbl}var a="mmenu",s="footer";t[a].prototype["_init_"+s]=function(a){h||e();var d=this.vars[s+"_added"];this.vars[s+"_added"]=!0,d||(this.opts[s]=o(this.opts[s]),this.conf[s]=n(this.conf[s]));var f=this,u=this.opts[s];if(this.conf[s],!d&&u.add){var c=u.content?u.content:u.title;t('
    ').appendTo(this.$menu).append(c)}var p=t("div."+i.footer,this.$menu);p.length&&(this.$menu.addClass(i.hasfooter),u.update&&a.each(function(){var o=t(this),n=t("."+f.conf.classNames[s].panelFooter,o),e=n.html();e||(e=u.title);var a=function(){p[e?"show":"hide"](),p.html(e)};o.on(r.open,a),o.hasClass(i.current)&&a()}),"function"==typeof this._init_buttonbars&&this._init_buttonbars(p))},t[a].addons.push(s),t[a].defaults[s]={add:!1,content:!1,title:"",update:!1},t[a].configuration.classNames[s]={panelFooter:"Footer"};var i,d,r,f,h=!1}(jQuery); !function(e){function t(t){return"boolean"==typeof t&&(t={add:t,update:t}),"object"!=typeof t&&(t={}),t=e.extend(!0,{},e[s].defaults[r],t)}function a(e){return e}function n(){l=!0,i=e[s]._c,o=e[s]._d,h=e[s]._e,i.add("header hasheader prev next title"),d=e[s].glbl}var s="mmenu",r="header";e[s].prototype["_init_"+r]=function(s){l||n();var o=this.vars[r+"_added"];this.vars[r+"_added"]=!0,o||(this.opts[r]=t(this.opts[r]),this.conf[r]=a(this.conf[r]));var c=this,f=this.opts[r];if(this.conf[r],!o&&f.add){var p=f.content?f.content:'';e('
    ').prependTo(this.$menu).append(p)}var u=e("div."+i.header,this.$menu);if(u.length){if(this.$menu.addClass(i.hasheader),f.update){var v=u.find("."+i.title),m=u.find("."+i.prev),_=u.find("."+i.next),g=!1;d.$page&&(g="#"+d.$page.attr("id")),o||m.add(_).off(h.click).on(h.click,function(t){t.preventDefault(),t.stopPropagation();var a=e(this).attr("href");"#"!==a&&(g&&a==g?c.$menu.trigger(h.close):e(a,c.$menu).trigger(h.open))}),s.each(function(){var t=e(this),a=e("."+c.conf.classNames[r].panelHeader,t),n=e("."+c.conf.classNames[r].panelPrev,t),s=e("."+c.conf.classNames[r].panelNext,t),o=a.html(),d=n.attr("href"),l=s.attr("href");o||(o=e("."+i.subclose,t).html()),o||(o=f.title),d||(d=e("."+i.subclose,t).attr("href"));var p=n.html(),u=s.html(),g=function(){v[o?"show":"hide"](),v.html(o),m[d?"attr":"removeAttr"]("href",d),m[d||p?"show":"hide"](),m.html(p),_[l?"attr":"removeAttr"]("href",l),_[l||u?"show":"hide"](),_.html(u)};t.on(h.open,g),t.hasClass(i.current)&&g()})}"function"==typeof this._init_buttonbars&&this._init_buttonbars(u)}},e[s].addons.push(r),e[s].defaults[r]={add:!1,content:!1,title:"Menu",update:!1},e[s].configuration.classNames[r]={panelHeader:"Header",panelNext:"Next",panelPrev:"Prev"};var i,o,h,d,l=!1}(jQuery); !function(l){function a(a){return"boolean"==typeof a&&(a={collapse:a}),"object"!=typeof a&&(a={}),a=l.extend(!0,{},l[o].defaults[t],a)}function e(l){return l}function s(){i=!0,n=l[o]._c,d=l[o]._d,c=l[o]._e,n.add("collapsed"),d.add("updatelabel"),p=l[o].glbl}var o="mmenu",t="labels";l[o].prototype["_init_"+t]=function(o){i||s();var p=this.vars[t+"_added"];this.vars[t+"_added"]=!0,p||(this.opts[t]=a(this.opts[t]),this.conf[t]=e(this.conf[t]));var u=this.opts[t];this.conf[t],u.collapse&&(this.__refactorClass(l("li",this.$menu),this.conf.classNames[t].collapsed,"collapsed"),l("."+n.label,o).each(function(){var a=l(this),e=a.nextUntil("."+n.label,"all"==u.collapse?null:"."+n.collapsed);"all"==u.collapse&&(a.addClass(n.opened),e.removeClass(n.collapsed)),e.length&&(a.data(d.updatelabel)||(a.data(d.updatelabel,!0),a.wrapInner(""),a.prepend('')),a.find("a."+n.subopen).off(c.click).on(c.click,function(l){l.preventDefault(),a.toggleClass(n.opened),e[a.hasClass(n.opened)?"removeClass":"addClass"](n.collapsed)}))}))},l[o].addons.push(t),l[o].defaults[t]={collapse:!1},l[o].configuration.classNames[t]={collapsed:"Collapsed"};var n,d,c,p,i=!1}(jQuery); !function(e){function s(e){switch(e){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1}function n(s){return"boolean"==typeof s&&(s={add:s,search:s}),"object"!=typeof s&&(s={}),s=e.extend(!0,{},e[r].defaults[o],s),"boolean"!=typeof s.showLinksOnly&&(s.showLinksOnly="menu"==s.addTo),s}function t(e){return e}function a(){c=!0,i=e[r]._c,l=e[r]._d,d=e[r]._e,i.add("search hassearch noresultsmsg noresults nosubresults"),d.add("search reset change"),h=e[r].glbl}var r="mmenu",o="searchfield";e[r].prototype["_init_"+o]=function(r){c||a();var h=this.vars[o+"_added"];this.vars[o+"_added"]=!0,h||(this.opts[o]=n(this.opts[o]),this.conf[o]=t(this.conf[o]));var u=this,f=this.opts[o];if(this.conf[o],f.add){switch(f.addTo){case"menu":var p=this.$menu;break;case"panels":var p=r;break;default:var p=e(f.addTo,this.$menu).filter("."+i.panel)}p.length&&p.each(function(){var s=e(this),n=s.is("."+i.list)?"li":"div";if(!s.children(n+"."+i.search).length){if(s.is("."+i.menu))var t=u.$menu,a="prependTo";else var t=s.children().first(),a=t.is("."+i.subtitle)?"insertAfter":"insertBefore";e("<"+n+' class="'+i.search+'" />').append('')[a](t)}f.noResults&&(s.is("."+i.menu)&&(s=s.children("."+i.panel).first()),n=s.is("."+i.list)?"li":"div",s.children(n+"."+i.noresultsmsg).length||e("<"+n+' class="'+i.noresultsmsg+'" />').html(f.noResults).appendTo(s))})}if(this.$menu.children("div."+i.search).length&&this.$menu.addClass(i.hassearch),f.search){var v=e("."+i.search,this.$menu);v.length&&v.each(function(){var n=e(this);if("menu"==f.addTo)var t=e("."+i.panel,u.$menu),a=u.$menu;else var t=n.closest("."+i.panel),a=t;var r=n.children("input"),o=u.__findAddBack(t,"."+i.list).children("li"),h=o.filter("."+i.label),c=o.not("."+i.subtitle).not("."+i.label).not("."+i.search).not("."+i.noresultsmsg),p="> a";f.showLinksOnly||(p+=", > span"),r.off(d.keyup+" "+d.change).on(d.keyup,function(e){s(e.keyCode)||n.trigger(d.search)}).on(d.change,function(){n.trigger(d.search)}),n.off(d.reset+" "+d.search).on(d.reset+" "+d.search,function(e){e.stopPropagation()}).on(d.reset,function(){n.trigger(d.search,[""])}).on(d.search,function(s,n){"string"==typeof n?r.val(n):n=r.val(),n=n.toLowerCase(),t.scrollTop(0),c.add(h).addClass(i.hidden),c.each(function(){var s=e(this);e(p,s).text().toLowerCase().indexOf(n)>-1&&s.add(s.prevAll("."+i.label).first()).removeClass(i.hidden)}),e(t.get().reverse()).each(function(s){var n=e(this),t=n.data(l.parent);if(t){var a=n.add(n.find("> ."+i.list)).find("> li").not("."+i.subtitle).not("."+i.search).not("."+i.noresultsmsg).not("."+i.label).not("."+i.hidden);a.length?t.removeClass(i.hidden).removeClass(i.nosubresults).prevAll("."+i.label).first().removeClass(i.hidden):"menu"==f.addTo&&(n.hasClass(i.opened)&&setTimeout(function(){t.trigger(d.open)},1.5*(s+1)*u.conf.openingInterval),t.addClass(i.nosubresults))}}),a[c.not("."+i.hidden).length?"removeClass":"addClass"](i.noresults),u._update()})})}},e[r].addons.push(o),e[r].defaults[o]={add:!1,addTo:"menu",search:!1,placeholder:"Search",noResults:"No results found."};var i,l,d,h,c=!1}(jQuery); !function(t){function e(t){return t}function s(t){return t}function c(){r=!0,n=t[i]._c,o=t[i]._d,l=t[i]._e,n.add("toggle check"),h=t[i].glbl}var i="mmenu",a="toggles";t[i].prototype["_init_"+a]=function(i){r||c();var o=this.vars[a+"_added"];this.vars[a+"_added"]=!0,o||(this.opts[a]=e(this.opts[a]),this.conf[a]=s(this.conf[a]));var l=this;this.opts[a],this.conf[a],this.__refactorClass(t("input",i),this.conf.classNames[a].toggle,"toggle"),this.__refactorClass(t("input",i),this.conf.classNames[a].check,"check"),t("input."+n.toggle,i).add("input."+n.check,i).each(function(){var e=t(this),s=e.closest("li"),c=e.hasClass(n.toggle)?"toggle":"check",i=e.attr("id")||l.__getUniqueId();s.children('label[for="'+i+'"]').length||(e.attr("id",i),s.prepend(e),t('').insertBefore(s.children().last()))})},t[i].addons.push(a),t[i].defaults[a]={},t[i].configuration.classNames[a]={toggle:"Toggle",check:"Check"};var n,o,l,h,r=!1}(jQuery); (function(c){c.extend(c.fn,{validate:function(a){if(this.length){var b=c.data(this[0],"validator");if(b)return b;this.attr("novalidate","novalidate");b=new c.validator(a,this[0]);c.data(this[0],"validator",b);if(b.settings.onsubmit){a=this.find("input, button");a.filter(".cancel").click(function(){b.cancelSubmit=true});b.settings.submitHandler&&a.filter(":submit").click(function(){b.submitButton=this});this.submit(function(d){function e(){if(b.settings.submitHandler){if(b.submitButton)var f=c("").attr("name", b.submitButton.name).val(b.submitButton.value).appendTo(b.currentForm);b.settings.submitHandler.call(b,b.currentForm);b.submitButton&&f.remove();return false}return true}b.settings.debug&&d.preventDefault();if(b.cancelSubmit){b.cancelSubmit=false;return e()}if(b.form()){if(b.pendingRequest){b.formSubmitted=true;return false}return e()}else{b.focusInvalid();return false}})}return b}else a&&a.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing")},valid:function(){if(c(this[0]).is("form"))return this.validate().form(); else{var a=true,b=c(this[0].form).validate();this.each(function(){a&=b.element(this)});return a}},removeAttrs:function(a){var b={},d=this;c.each(a.split(/\s/),function(e,f){b[f]=d.attr(f);d.removeAttr(f)});return b},rules:function(a,b){var d=this[0];if(a){var e=c.data(d.form,"validator").settings,f=e.rules,g=c.validator.staticRules(d);switch(a){case "add":c.extend(g,c.validator.normalizeRule(b));f[d.name]=g;if(b.messages)e.messages[d.name]=c.extend(e.messages[d.name],b.messages);break;case "remove":if(!b){delete f[d.name]; return g}var h={};c.each(b.split(/\s/),function(j,i){h[i]=g[i];delete g[i]});return h}}d=c.validator.normalizeRules(c.extend({},c.validator.metadataRules(d),c.validator.classRules(d),c.validator.attributeRules(d),c.validator.staticRules(d)),d);if(d.required){e=d.required;delete d.required;d=c.extend({required:e},d)}return d}});c.extend(c.expr[":"],{blank:function(a){return!c.trim(""+a.value)},filled:function(a){return!!c.trim(""+a.value)},unchecked:function(a){return!a.checked}});c.validator=function(a, b){this.settings=c.extend(true,{},c.validator.defaults,a);this.currentForm=b;this.init()};c.validator.format=function(a,b){if(arguments.length==1)return function(){var d=c.makeArray(arguments);d.unshift(a);return c.validator.format.apply(this,d)};if(arguments.length>2&&b.constructor!=Array)b=c.makeArray(arguments).slice(1);if(b.constructor!=Array)b=[b];c.each(b,function(d,e){a=a.replace(RegExp("\\{"+d+"\\}","g"),e)});return a};c.extend(c.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error", validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:c([]),errorLabelContainer:c([]),onsubmit:true,ignore:":hidden",ignoreTitle:false,onfocusin:function(a){this.lastActive=a;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass);this.addWrapper(this.errorsFor(a)).hide()}},onfocusout:function(a){if(!this.checkable(a)&&(a.name in this.submitted||!this.optional(a)))this.element(a)}, onkeyup:function(a){if(a.name in this.submitted||a==this.lastElement)this.element(a)},onclick:function(a){if(a.name in this.submitted)this.element(a);else a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(a,b,d){a.type==="radio"?this.findByName(a.name).addClass(b).removeClass(d):c(a).addClass(b).removeClass(d)},unhighlight:function(a,b,d){a.type==="radio"?this.findByName(a.name).removeClass(b).addClass(d):c(a).removeClass(b).addClass(d)}},setDefaults:function(a){c.extend(c.validator.defaults, a)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:c.validator.format("Please enter no more than {0} characters."), minlength:c.validator.format("Please enter at least {0} characters."),rangelength:c.validator.format("Please enter a value between {0} and {1} characters long."),range:c.validator.format("Please enter a value between {0} and {1}."),max:c.validator.format("Please enter a value less than or equal to {0}."),min:c.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){function a(e){var f=c.data(this[0].form,"validator"),g="on"+e.type.replace(/^validate/, "");f.settings[g]&&f.settings[g].call(f,this[0],e)}this.labelContainer=c(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||c(this.currentForm);this.containers=c(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var b=this.groups={};c.each(this.settings.groups,function(e,f){c.each(f.split(/\s/),function(g,h){b[h]=e})});var d= this.settings.rules;c.each(d,function(e,f){d[e]=c.validator.normalizeRule(f)});c(this.currentForm).validateDelegate("[type='text'], [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",a).validateDelegate("[type='radio'], [type='checkbox'], select, option","click", a);this.settings.invalidHandler&&c(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){this.checkForm();c.extend(this.submitted,this.errorMap);this.invalid=c.extend({},this.errorMap);this.valid()||c(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(a){this.lastElement= a=this.validationTargetFor(this.clean(a));this.prepareElement(a);this.currentElements=c(a);var b=this.check(a);if(b)delete this.invalid[a.name];else this.invalid[a.name]=true;if(!this.numberOfInvalids())this.toHide=this.toHide.add(this.containers);this.showErrors();return b},showErrors:function(a){if(a){c.extend(this.errorMap,a);this.errorList=[];for(var b in a)this.errorList.push({message:a[b],element:this.findByName(b)[0]});this.successList=c.grep(this.successList,function(d){return!(d.name in a)})}this.settings.showErrors? this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){c.fn.resetForm&&c(this.currentForm).resetForm();this.submitted={};this.lastElement=null;this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b=0,d;for(d in a)b++;return b},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{c(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(a){}},findLastActive:function(){var a=this.lastActive;return a&&c.grep(this.errorList,function(b){return b.element.name==a.name}).length==1&&a},elements:function(){var a=this,b={};return c(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&& a.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in b||!a.objectLength(c(this).rules()))return false;return b[this.name]=true})},clean:function(a){return c(a)[0]},errors:function(){return c(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=c([]);this.toHide=c([]);this.currentElements=c([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)}, prepareElement:function(a){this.reset();this.toHide=this.errorsFor(a)},check:function(a){a=this.validationTargetFor(this.clean(a));var b=c(a).rules(),d=false,e;for(e in b){var f={method:e,parameters:b[e]};try{var g=c.validator.methods[e].call(this,a.value.replace(/\r/g,""),a,f.parameters);if(g=="dependency-mismatch")d=true;else{d=false;if(g=="pending"){this.toHide=this.toHide.not(this.errorsFor(a));return}if(!g){this.formatAndAdd(a,f);return false}}}catch(h){this.settings.debug&&window.console&&console.log("exception occured when checking element "+ a.id+", check the '"+f.method+"' method",h);throw h;}}if(!d){this.objectLength(b)&&this.successList.push(a);return true}},customMetaMessage:function(a,b){if(c.metadata){var d=this.settings.meta?c(a).metadata()[this.settings.meta]:c(a).metadata();return d&&d.messages&&d.messages[b]}},customMessage:function(a,b){var d=this.settings.messages[a];return d&&(d.constructor==String?d:d[b])},findDefined:function(){for(var a=0;aWarning: No message defined for "+a.name+"")},formatAndAdd:function(a,b){var d=this.defaultMessage(a,b.method),e=/\$?\{(\d+)\}/g;if(typeof d=="function")d=d.call(this,b.parameters,a);else if(e.test(d))d=jQuery.format(d.replace(e,"{$1}"),b.parameters);this.errorList.push({message:d,element:a});this.errorMap[a.name]=d;this.submitted[a.name]= d},addWrapper:function(a){if(this.settings.wrapper)a=a.add(a.parent(this.settings.wrapper));return a},defaultShowErrors:function(){for(var a=0;this.errorList[a];a++){var b=this.errorList[a];this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass);this.showLabel(b.element,b.message)}if(this.errorList.length)this.toShow=this.toShow.add(this.containers);if(this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]); if(this.settings.unhighlight){a=0;for(b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass)}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return c(this.errorList).map(function(){return this.element})},showLabel:function(a,b){var d=this.errorsFor(a);if(d.length){d.removeClass(this.settings.validClass).addClass(this.settings.errorClass); d.attr("generated")&&d.html(b)}else{d=c("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(a),generated:true}).addClass(this.settings.errorClass).html(b||"");if(this.settings.wrapper)d=d.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();this.labelContainer.append(d).length||(this.settings.errorPlacement?this.settings.errorPlacement(d,c(a)):d.insertAfter(a))}if(!b&&this.settings.success){d.text("");typeof this.settings.success=="string"?d.addClass(this.settings.success):this.settings.success(d)}this.toShow= this.toShow.add(d)},errorsFor:function(a){var b=this.idOrName(a);return this.errors().filter(function(){return c(this).attr("for")==b})},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(a){if(this.checkable(a))a=this.findByName(a.name).not(this.settings.ignore)[0];return a},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(a){var b=this.currentForm;return c(document.getElementsByName(a)).map(function(d, e){return e.form==b&&e.name==a&&e||null})},getLength:function(a,b){switch(b.nodeName.toLowerCase()){case "select":return c("option:selected",b).length;case "input":if(this.checkable(b))return this.findByName(b.name).filter(":checked").length}return a.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):true},dependTypes:{"boolean":function(a){return a},string:function(a,b){return!!c(a,b.form).length},"function":function(a,b){return a(b)}},optional:function(a){return!c.validator.methods.required.call(this, c.trim(a.value),a)&&"dependency-mismatch"},startRequest:function(a){if(!this.pending[a.name]){this.pendingRequest++;this.pending[a.name]=true}},stopRequest:function(a,b){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[a.name];if(b&&this.pendingRequest==0&&this.formSubmitted&&this.form()){c(this.currentForm).submit();this.formSubmitted=false}else if(!b&&this.pendingRequest==0&&this.formSubmitted){c(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted= false}},previousValue:function(a){return c.data(a,"previousValue")||c.data(a,"previousValue",{old:null,valid:true,message:this.defaultMessage(a,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(a,b){a.constructor==String?this.classRuleSettings[a]=b:c.extend(this.classRuleSettings, a)},classRules:function(a){var b={};(a=c(a).attr("class"))&&c.each(a.split(" "),function(){this in c.validator.classRuleSettings&&c.extend(b,c.validator.classRuleSettings[this])});return b},attributeRules:function(a){var b={};a=c(a);for(var d in c.validator.methods){var e;if(e=d==="required"&&typeof c.fn.prop==="function"?a.prop(d):a.attr(d))b[d]=e;else if(a[0].getAttribute("type")===d)b[d]=true}b.maxlength&&/-1|2147483647|524288/.test(b.maxlength)&&delete b.maxlength;return b},metadataRules:function(a){if(!c.metadata)return{}; var b=c.data(a.form,"validator").settings.meta;return b?c(a).metadata()[b]:c(a).metadata()},staticRules:function(a){var b={},d=c.data(a.form,"validator");if(d.settings.rules)b=c.validator.normalizeRule(d.settings.rules[a.name])||{};return b},normalizeRules:function(a,b){c.each(a,function(d,e){if(e===false)delete a[d];else if(e.param||e.depends){var f=true;switch(typeof e.depends){case "string":f=!!c(e.depends,b.form).length;break;case "function":f=e.depends.call(b,b)}if(f)a[d]=e.param!==undefined? e.param:true;else delete a[d]}});c.each(a,function(d,e){a[d]=c.isFunction(e)?e(b):e});c.each(["minlength","maxlength","min","max"],function(){if(a[this])a[this]=Number(a[this])});c.each(["rangelength","range"],function(){if(a[this])a[this]=[Number(a[this][0]),Number(a[this][1])]});if(c.validator.autoCreateRanges){if(a.min&&a.max){a.range=[a.min,a.max];delete a.min;delete a.max}if(a.minlength&&a.maxlength){a.rangelength=[a.minlength,a.maxlength];delete a.minlength;delete a.maxlength}}a.messages&&delete a.messages; return a},normalizeRule:function(a){if(typeof a=="string"){var b={};c.each(a.split(/\s/),function(){b[this]=true});a=b}return a},addMethod:function(a,b,d){c.validator.methods[a]=b;c.validator.messages[a]=d!=undefined?d:c.validator.messages[a];b.length<3&&c.validator.addClassRules(a,c.validator.normalizeRule(a))},methods:{required:function(a,b,d){if(!this.depend(d,b))return"dependency-mismatch";switch(b.nodeName.toLowerCase()){case "select":return(a=c(b).val())&&a.length>0;case "input":if(this.checkable(b))return this.getLength(a, b)>0;default:return c.trim(a).length>0}},remote:function(a,b,d){if(this.optional(b))return"dependency-mismatch";var e=this.previousValue(b);this.settings.messages[b.name]||(this.settings.messages[b.name]={});e.originalMessage=this.settings.messages[b.name].remote;this.settings.messages[b.name].remote=e.message;d=typeof d=="string"&&{url:d}||d;if(this.pending[b.name])return"pending";if(e.old===a)return e.valid;e.old=a;var f=this;this.startRequest(b);var g={};g[b.name]=a;c.ajax(c.extend(true,{url:d, mode:"abort",port:"validate"+b.name,dataType:"json",data:g,success:function(h){f.settings.messages[b.name].remote=e.originalMessage;var j=h===true;if(j){var i=f.formSubmitted;f.prepareElement(b);f.formSubmitted=i;f.successList.push(b);f.showErrors()}else{i={};h=h||f.defaultMessage(b,"remote");i[b.name]=e.message=c.isFunction(h)?h(a):h;f.showErrors(i)}e.valid=j;f.stopRequest(b,j)}},d));return"pending"},minlength:function(a,b,d){return this.optional(b)||this.getLength(c.trim(a),b)>=d},maxlength:function(a, b,d){return this.optional(b)||this.getLength(c.trim(a),b)<=d},rangelength:function(a,b,d){a=this.getLength(c.trim(a),b);return this.optional(b)||a>=d[0]&&a<=d[1]},min:function(a,b,d){return this.optional(b)||a>=d},max:function(a,b,d){return this.optional(b)||a<=d},range:function(a,b,d){return this.optional(b)||a>=d[0]&&a<=d[1]},email:function(a,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(a)}, url:function(a,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)}, date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a))},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9 -]+/.test(a))return false;var d=0,e=0,f=false;a=a.replace(/\D/g,"");for(var g=a.length-1;g>= 0;g--){e=a.charAt(g);e=parseInt(e,10);if(f)if((e*=2)>9)e-=9;d+=e;f=!f}return d%10==0},accept:function(a,b,d){d=typeof d=="string"?d.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(b)||a.match(RegExp(".("+d+")$","i"))},equalTo:function(a,b,d){d=c(d).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){c(b).valid()});return a==d.val()}}});c.format=c.validator.format})(jQuery); (function(c){var a={};if(c.ajaxPrefilter)c.ajaxPrefilter(function(d,e,f){e=d.port;if(d.mode=="abort"){a[e]&&a[e].abort();a[e]=f}});else{var b=c.ajax;c.ajax=function(d){var e=("port"in d?d:c.ajaxSettings).port;if(("mode"in d?d:c.ajaxSettings).mode=="abort"){a[e]&&a[e].abort();return a[e]=b.apply(this,arguments)}return b.apply(this,arguments)}}})(jQuery); (function(c){!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.handle.call(this,e)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)},handler:function(e){arguments[0]=c.event.fix(e);arguments[0].type=b;return c.event.handle.apply(this,arguments)}}});c.extend(c.fn,{validateDelegate:function(a, b,d){return this.bind(b,function(e){var f=c(e.target);if(f.is(a))return d.apply(f,arguments)})}})})(jQuery); !function(e){e(["jquery"],function(e){return function(){function t(e,t,n){return g({type:O.error,iconClass:m().iconClasses.error,message:e,optionsOverride:n,title:t})}function n(t,n){return t||(t=m()),v=e("#"+t.containerId),v.length?v:(n&&(v=d(t)),v)}function o(e,t,n){return g({type:O.info,iconClass:m().iconClasses.info,message:e,optionsOverride:n,title:t})}function s(e){C=e}function i(e,t,n){return g({type:O.success,iconClass:m().iconClasses.success,message:e,optionsOverride:n,title:t})}function a(e,t,n){return g({type:O.warning,iconClass:m().iconClasses.warning,message:e,optionsOverride:n,title:t})}function r(e,t){var o=m();v||n(o),u(e,o,t)||l(o)}function c(t){var o=m();return v||n(o),t&&0===e(":focus",t).length?void h(t):void(v.children().length&&v.remove())}function l(t){for(var n=v.children(),o=n.length-1;o>=0;o--)u(e(n[o]),t)}function u(t,n,o){var s=!(!o||!o.force)&&o.force;return!(!t||!s&&0!==e(":focus",t).length)&&(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){h(t)}}),!0)}function d(t){return v=e("
    ").attr("id",t.containerId).addClass(t.positionClass),v.appendTo(e(t.target)),v}function p(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1}}function f(e){C&&C(e)}function g(t){function o(e){return null==e&&(e=""),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function s(){c(),u(),d(),p(),g(),C(),l(),i()}function i(){var e="";switch(t.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}I.attr("aria-live",e)}function a(){E.closeOnHover&&I.hover(H,D),!E.onclick&&E.tapToDismiss&&I.click(b),E.closeButton&&j&&j.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&e.cancelBubble!==!0&&(e.cancelBubble=!0),E.onCloseClick&&E.onCloseClick(e),b(!0)}),E.onclick&&I.click(function(e){E.onclick(e),b()})}function r(){I.hide(),I[E.showMethod]({duration:E.showDuration,easing:E.showEasing,complete:E.onShown}),E.timeOut>0&&(k=setTimeout(b,E.timeOut),F.maxHideTime=parseFloat(E.timeOut),F.hideEta=(new Date).getTime()+F.maxHideTime,E.progressBar&&(F.intervalId=setInterval(x,10)))}function c(){t.iconClass&&I.addClass(E.toastClass).addClass(y)}function l(){E.newestOnTop?v.prepend(I):v.append(I)}function u(){if(t.title){var e=t.title;E.escapeHtml&&(e=o(t.title)),M.append(e).addClass(E.titleClass),I.append(M)}}function d(){if(t.message){var e=t.message;E.escapeHtml&&(e=o(t.message)),B.append(e).addClass(E.messageClass),I.append(B)}}function p(){E.closeButton&&(j.addClass(E.closeClass).attr("role","button"),I.prepend(j))}function g(){E.progressBar&&(q.addClass(E.progressClass),I.prepend(q))}function C(){E.rtl&&I.addClass("rtl")}function O(e,t){if(e.preventDuplicates){if(t.message===w)return!0;w=t.message}return!1}function b(t){var n=t&&E.closeMethod!==!1?E.closeMethod:E.hideMethod,o=t&&E.closeDuration!==!1?E.closeDuration:E.hideDuration,s=t&&E.closeEasing!==!1?E.closeEasing:E.hideEasing;if(!e(":focus",I).length||t)return clearTimeout(F.intervalId),I[n]({duration:o,easing:s,complete:function(){h(I),clearTimeout(k),E.onHidden&&"hidden"!==P.state&&E.onHidden(),P.state="hidden",P.endTime=new Date,f(P)}})}function D(){(E.timeOut>0||E.extendedTimeOut>0)&&(k=setTimeout(b,E.extendedTimeOut),F.maxHideTime=parseFloat(E.extendedTimeOut),F.hideEta=(new Date).getTime()+F.maxHideTime)}function H(){clearTimeout(k),F.hideEta=0,I.stop(!0,!0)[E.showMethod]({duration:E.showDuration,easing:E.showEasing})}function x(){var e=(F.hideEta-(new Date).getTime())/F.maxHideTime*100;q.width(e+"%")}var E=m(),y=t.iconClass||E.iconClass;if("undefined"!=typeof t.optionsOverride&&(E=e.extend(E,t.optionsOverride),y=t.optionsOverride.iconClass||y),!O(E,t)){T++,v=n(E,!0);var k=null,I=e("
    "),M=e("
    "),B=e("
    "),q=e("
    "),j=e(E.closeHtml),F={intervalId:null,hideEta:null,maxHideTime:null},P={toastId:T,state:"visible",startTime:new Date,options:E,map:t};return s(),r(),a(),f(P),E.debug&&console&&console.log(P),I}}function m(){return e.extend({},p(),b.options)}function h(e){v||(v=n()),e.is(":visible")||(e.remove(),e=null,0===v.children().length&&(v.remove(),w=void 0))}var v,C,w,T=0,O={error:"error",info:"info",success:"success",warning:"warning"},b={clear:r,remove:c,error:t,getContainer:n,info:o,options:{},subscribe:s,success:i,version:"2.1.3",warning:a};return b}()})}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}); jQuery(document).ready(function($){ $(".box-detail-schedule").hide(); var template=''+ ' {CLASS_ID}'+ ' {CLASS_NAME}'+ ' {CLASS_LONG}'+ ' {CLASS_TIME_START}-{CLASS_TIME_END}'+ ' {CLASS_START}'+ ' {SIGNUP_TXT}'+ ' '; $('#form-schedule').submit(function(event){ event.preventDefault(); $(".loadme-mask").fadeIn('fast'); var data={ action: 'xdi_get_schedule', cat_id: $('#form-schedule select').val() }; $.ajax({ url: admin_ajax, type: 'GET', data: data, }) .done(function(data){ $(".loadme-mask").fadeOut('fast'); $('.table-schedule tbody tr').remove(); if(data.status==false){ show_result('error','Chưa có lịch học cho lớp bạn chọn'); }else{ $(".box-detail-schedule").show(); for (var i=0; i < data.length; i++){ var temp=template; temp=temp.replace("{CLASS_ID}", data[i].class_id); temp=temp.replace("{CLASS_NAME}", data[i].class_name); temp=temp.replace("{CLASS_LONG}", data[i].class_long); temp=temp.replace("{CLASS_START}", data[i].class_start); temp=temp.replace("{CLASS_TIME_START}", data[i].class_time_start); temp=temp.replace("{CLASS_TIME_END}", data[i].class_time_end); $('.table-schedule tbody').append(temp); }} }); }); $("#form-schedule").validate({ errorElement: "span", submitHandler: function(form){ $(".loadme-mask").fadeIn('fast'); var data={ action: 'xdi_get_schedule', cat_id: $('#form-schedule select').val() }; $.ajax({ url: admin_ajax, type: 'GET', data: data, }) .done(function(data){ console.log(data); $(".loadme-mask").fadeOut('fast'); $('.table-schedule tbody tr').remove(); if(data.status==false){ show_result('error','Chưa có lịch học cho lớp bạn chọn'); }else{ $(".box-detail-schedule").show(); for (var i=0; i < data.length; i++){ var temp=template; temp=temp.replace("{CLASS_ID}", data[i].class_id); temp=temp.replace("{CLASS_NAME}", data[i].class_name); temp=temp.replace("{CLASS_LONG}", data[i].class_long); temp=temp.replace("{CLASS_START}", data[i].class_start); temp=temp.replace("{CLASS_TIME_START}", data[i].class_time_start); temp=temp.replace("{CLASS_TIME_END}", data[i].class_time_end); temp=temp.replace("{ID_LINK}", data[i].slug); if(xdi_lang=='en'){ temp=temp.replace("{SIGNUP_TXT}", 'SIGN UP'); temp=temp.replace("{LINK}", '/en/register/'); }else{ temp=temp.replace("{SIGNUP_TXT}", 'ĐĂNG KÝ'); temp=temp.replace("{LINK}", '/dang-ky'); } $('.table-schedule tbody').append(temp); }} }); }}); $("#frm_consultant").validate({ errorElement: "span", submitHandler: function(form){ $(".loadme-mask").fadeIn('fast'); var data={ action: 'xdi_register', faqName: $('#faqName').val(), faqEmail: $('#faqEmail').val(), faqTel: $('#faqTel').val(), content: $('#consultantContent').val(), cat_id: $('#frm_consultant select').val(), is_student: $('.form-check-input:checked').val(), wp_nonce: $('#wp_nonce').val() }; $.ajax({ url: admin_ajax, type: 'POST', data: data, }) .done(function(data){ $(".loadme-mask").fadeOut('fast'); if(data.status==false){ show_result('error',data.message); }else{ show_result('success','Đăng ký thành công'); $('#frm_consultant')[0].reset(); }}); }}); $("#frm_contact").validate({ errorElement: "span", submitHandler: function(form){ $(".loadme-mask").fadeIn('fast'); var data={ action: 'xdi_contact', faqName: $('#faqName').val(), faqDateContact: $('#faqEmail').val(), faqTel: $('#faqTel').val(), cat_id: $('#frm_contact select').val(), wp_nonce: $('#wp_nonce').val() }; $.ajax({ url: admin_ajax, type: 'POST', data: data, }) .done(function(data){ $(".loadme-mask").fadeOut('fast'); if(data.status==false){ show_result('error',data.message); }else{ show_result('success','Đã gửi yêu cầu'); $('#frm_contact')[0].reset(); }}); }}); /* $("#frm_newsletter").validate({ errorElement: "span", submitHandler: function(form){ $(".loadme-mask").fadeIn('fast'); var data={ action: 'xdi_post_subscribe', ne: $('#newsletterEmail').val() }; $.ajax({ url: admin_ajax, type: 'POST', data: data, }) .done(function(data){ $(".loadme-mask").fadeOut('fast'); if(data.status==false){ show_result('error',data.message); }else{ show_result('success','Đăng ký thành công, bạn vui lòng kiểm tra email để xác nhận.'); $('#frm_newsletter')[0].reset(); }}); }}); */ $('body').on('click', '#tbl_schedule td a', function(event){ $.ajax({ url: admin_ajax, type: 'POST', data: {'slug':$(this).attr('data-link'), 'action':'xdi_set_session'}, }) .done(function(data){ console.log('ok'); }); }); }); $(document).ready(function (){ new WOW().init(); function show_result(type,content){ toastr.options.timeOut=false; toastr.options.closeButton=true; toastr[type](content); } jQuery.fn.mouseIsOver=function(){ return !!$(this[0]).is(":hover") } $("#main-menu > li").hover(function(){ $(this).find(".sub-menu").length > 0&&($(this).find(".sub-menu").mouseIsOver() ? $(this).removeClass("hover"):$(this).addClass("hover")) }, function(){ $(this).find(".sub-menu").length > 0&&($(this).find(".sub-menu").mouseIsOver() ? $(this).addClass("hover"):$(this).removeClass("hover")) }); $('#add_button li').appendTo('#main-menu'); $('nav#menu-mobile').mmenu(); $('.main').append('
    Back to Top
    '); $(window).scroll(function(){ if($(window).scrollTop() >=300){ $('header').addClass('fixed_header'); $('#top').fadeIn(); }else{ $('header').removeClass('fixed_header'); $('#top').fadeOut(); }}); $('#top').click(function(){ $('html, body').animate({scrollTop:0},500); }); $(function (){ $('[data-toggle="tooltip"]').tooltip() }) $('.owl-carousel').each(function(){ var xs_item=$(this).attr('data-xs-items'); var md_item=$(this).attr('data-md-items'); var sm_item=$(this).attr('data-sm-items'); var lg_item=$(this).attr('data-lg-items'); var margin=$(this).attr('data-margin'); var dot=$(this).attr('data-dot'); var autoplays=$(this).attr('data-autoplays'); var navs=$(this).attr('data-nav'); var fade=$(this).attr('data-fade'); var loops=$(this).attr('data-loop'); var centered=$(this).attr('data-center'); var autoH=$(this).attr('data-auto-height'); if(typeof margin!==typeof undefined&&margin!==false){ }else{ margin=30; } if(typeof xs_item!==typeof undefined&&xs_item!==false){ }else{ xs_item=1; } if(typeof sm_item!==typeof undefined&&sm_item!==false){ }else{ sm_item=1; } if(typeof md_item!==typeof undefined&&md_item!==false){ }else{ md_item=3; } if(typeof dot!==typeof undefined&&dot!==true){ dot=true; }else{ dot=false; } if(typeof autoplays!==typeof undefined&&autoplays!==true){ autoplays=true; }else{ autoplays=false; } if(typeof navs!==typeof undefined&&navs!==true){ navs=true; }else{ navs=false; } if(typeof loops!==typeof undefined&&loops!==true){ loops=true; }else{ loops=false; } if(typeof centered!==typeof undefined&¢ered!==true){ centered=true; }else{ centered=false; } if(typeof autoH!==typeof undefined&&autoH!==true){ autoH=true; }else{ autoH=false; } if(typeof fade!==typeof undefined&&fade!==true){ fade='fadeOut'; }else{ fade=''; } $(this).owlCarousel({ center: centered, loop:loops, margin:Number(margin), responsiveClass:true, navText:['',''], dots:dot, autoplay:autoplays, animateOut: fade, autoHeight: autoH, responsive:{ 0:{ items: Number(xs_item), nav:navs }, 600:{ items: Number(sm_item), nav:navs }, 992:{ items: Number(md_item), nav:navs }, 1200:{ items: Number(lg_item), nav:navs }}, }) }) $('.owl-carousel').on('.owl-stage', function (e){ if(e.deltaY>0){ $('.owl-carousel').trigger('next.owl'); }else{ $('.owl-carousel').trigger('prev.owl'); } e.preventDefault(); }); }); jQuery.extend(jQuery.validator.messages, { required: "Vui lòng nhập", remote: "Vui lòng nhập lại", email: "Địa chỉ email không hợp lệ", url: "URL không hợp lệ", date: "", dateISO: "Hãy nhập ngày (ISO).", number: "Dữ liệu là số", digits: "Dữ liệu là chữ số", creditcard: "Hãy nhập số thẻ tín dụng.", equalTo: "Dữ liệu nhập lại không hợp lệ", accept: "File không cho phép", maxlength: jQuery.format("Tối thiểu {0} kí tự"), minlength: jQuery.format("Tối đa {0} kí tự"), rangelength: jQuery.format("Hãy nhập từ {0} đến {1} kí tự"), range: jQuery.format("Giá trị từ {0} đến {1}."), max: jQuery.format("Hãy nhập từ {0} trở xuống."), min: jQuery.format("Hãy nhập từ {1} trở lên.") }); function newsletter_check_field(field, message){ if(!field) return true; if(field.type=="checkbox"&&!field.checked){ alert(message); return false; } if(field.required!==undefined&&field.required!==false&&field.value==""){ alert(message); return false; } return true; } function newsletter_check(f){ var re=/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-]{1,})+\.)+([a-zA-Z0-9]{2,})+$/; if(!re.test(f.elements["ne"].value)){ alert(newsletter.messages.email_error); return false; } if(!newsletter_check_field(f.elements["nn"], newsletter.messages.name_error)) return false; if(!newsletter_check_field(f.elements["ns"], newsletter.messages.surname_error)) return false; for (var i=1; i1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);